Lines Matching refs:jobdir
55 jobdir = "/results/job1"
57 jobdir + "/.autoserv_execute").and_return(True)
58 self.assertEqual(utils.find_toplevel_job_dir(jobdir), jobdir)
62 jobdir = "/results/job2"
64 jobdir + "/sub/.autoserv_execute").and_return(False)
66 jobdir + "/.autoserv_execute").and_return(True)
67 self.assertEqual(utils.find_toplevel_job_dir(jobdir + "/sub"), jobdir)
71 jobdir = "/results/job3"
73 jobdir + "/sub/sub/.autoserv_execute").and_return(False)
75 jobdir + "/sub/.autoserv_execute").and_return(False)
77 jobdir + "/.autoserv_execute").and_return(True)
78 self.assertEqual(utils.find_toplevel_job_dir(jobdir + "/sub/sub"),
79 jobdir)
82 jobdir = "/results/job4"
84 jobdir + "/.autoserv_execute").and_return(False)
88 self.assertEqual(utils.find_toplevel_job_dir(jobdir), "/")
92 jobdir = "/results/job5"
94 jobdir + "/.autoserv_execute").and_return(False)
98 self.assertEqual(utils.find_toplevel_job_dir(jobdir), None)