Lines Matching refs:logf
52 def __init__(self, logf, log_in_keyval): argument
53 self.logf = logf
63 path = os.path.join(logdir, self.logf)
80 def __init__(self, path, logf=None, log_in_keyval=False): argument
81 if not logf:
82 logf = os.path.basename(path)
83 super(logfile, self).__init__(logf, log_in_keyval)
89 r %= (self.path, self.logf, self.log_in_keyval)
95 return (self.path, self.logf) == (other.path, other.logf)
109 return hash((self.path, self.logf))
119 dst = os.path.join(logdir, self.logf, self.path.lstrip('/'))
122 dst = os.path.join(logdir, self.logf)
129 def __init__(self, cmd, logf=None, log_in_keyval=False, compress_log=False): argument
130 if not logf:
131 logf = cmd.replace(" ", "_")
132 super(command, self).__init__(logf, log_in_keyval)
139 r %= (self.cmd, self.logf, self.log_in_keyval)
145 return (self.cmd, self.logf) == (other.cmd, other.logf)
159 return hash((self.cmd, self.logf))
170 logf_path = os.path.join(logdir, self.logf)
212 command(cmd, logf=cmd.replace(" ", "_") + '.before'))
215 logfile(fname, logf=os.path.basename(fname) + '.before'))
221 command(cmd, logf=cmd.replace(" ", "_") + '.after'))
224 logfile(fname, logf=os.path.basename(fname) + '.after'))
227 self.test_loggables.add(command("df -mP", logf="df"))
232 logf='dmesg',
235 logf='journal',
240 self.boot_loggables.add(logfile('/proc/mounts', logf='proc_mounts'))
242 logf='uname',
455 keyval["sysinfo-" + log.logf] = log.readline(logdir)