Home | History | Annotate | Download | only in bin

Lines Matching full:path

45         path = os.path.join(logdir, self.logf)
46 if os.path.exists(path):
47 return utils.read_one_line(path)
54 def __init__(self, path, logf=None, log_in_keyval=False):
56 logf = os.path.basename(path)
58 self.path = path
63 r %= (self.path, self.logf, self.log_in_keyval)
69 return (self.path, self.logf) == (other.path, other.logf)
83 return hash((self.path, self.logf))
91 if os.path.exists(self.path):
92 shutil.copyfile(self.path, os.path.join(logdir, self.logf))
136 if "PATH" not in env:
137 env["PATH"] = "/usr/bin:/bin"
138 logf_path = os.path.join(logdir, self.logf)
148 if self._compress_log and os.path.exists(logf_path):
178 logfile(fname, logf=os.path.basename(fname) + '.before'))
187 logfile(fname, logf=os.path.basename(fname) + '.after'))
225 sysinfodir = os.path.join(resultsdir, "sysinfo")
226 if not os.path.exists(sysinfodir):
232 if not glob.glob(os.path.join(self.sysinfodir, "*")):
235 return len(glob.glob(os.path.join(self.sysinfodir, "boot.*")))
246 return os.path.join(self.sysinfodir, boot_dir)
252 logdir = os.path.join(self._get_sysinfodir(test.outputdir), iter_dir)
253 if not os.path.exists(logdir):
262 if not os.path.exists(logdir):
269 installed_path = os.path.join(logdir, "installed_packages")
281 if os.path.exists("/var/log/messages"):
286 if os.path.exists("/var/log/journal"):
308 assert os.path.exists(reboot_dir)
309 symlink_dest = os.path.join(test_sysinfodir, "reboot_current")
311 os.path.dirname(symlink_dest))
335 added_path = os.path.join(test_sysinfodir, "added_packages")
338 removed_path = os.path.join(test_sysinfodir, "removed_packages")
384 out_messages = open(os.path.join(logdir, "messages"), "w")
399 with open(os.path.join(logdir, "journal"), "w") as journal:
428 os.path.join(test_sysinfodir, "reboot_current")))
437 path = os.path.join(test_sysinfodir, "reboot_current", "meminfo")
438 if os.path.exists(path):
439 mem_data = open(path).read()