Lines Matching refs:logf
33 def __init__(self, logf, log_in_keyval):
34 self.logf = logf
45 path = os.path.join(logdir, self.logf)
54 def __init__(self, path, logf=None, log_in_keyval=False):
55 if not logf:
56 logf = os.path.basename(path)
57 super(logfile, self).__init__(logf, log_in_keyval)
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))
92 shutil.copyfile(self.path, os.path.join(logdir, self.logf))
97 def __init__(self, cmd, logf=None, log_in_keyval=False, compress_log=False):
98 if not logf:
99 logf = cmd.replace(" ", "_")
100 super(command, self).__init__(logf, log_in_keyval)
107 r %= (self.cmd, self.logf, self.log_in_keyval)
113 return (self.cmd, self.logf) == (other.cmd, other.logf)
127 return hash((self.cmd, self.logf))
138 logf_path = os.path.join(logdir, self.logf)
175 command(cmd, logf=cmd.replace(" ", "_") + '.before'))
178 logfile(fname, logf=os.path.basename(fname) + '.before'))
184 command(cmd, logf=cmd.replace(" ", "_") + '.after'))
187 logfile(fname, logf=os.path.basename(fname) + '.after'))
190 self.test_loggables.add(command("df -mP", logf="df"))
194 self.test_loggables.add(command("dmesg -c", logf="dmesg",
196 self.test_loggables.add(command("journalctl -o export", logf="journal",
202 self.boot_loggables.add(logfile('/proc/mounts', logf='proc_mounts'))
203 self.boot_loggables.add(command("uname -a", logf="uname",
410 keyval["sysinfo-" + log.logf] = log.readline(logdir)