Lines Matching refs:logf
51 def __init__(self, logf, log_in_keyval): argument
52 self.logf = logf
62 path = os.path.join(logdir, self.logf)
79 def __init__(self, path, logf=None, log_in_keyval=False): argument
80 if not logf:
81 logf = os.path.basename(path)
82 super(logfile, self).__init__(logf, log_in_keyval)
88 r %= (self.path, self.logf, self.log_in_keyval)
94 return (self.path, self.logf) == (other.path, other.logf)
108 return hash((self.path, self.logf))
118 dst = os.path.join(logdir, self.logf, self.path.lstrip('/'))
121 dst = os.path.join(logdir, self.logf)
127 def __init__(self, cmd, logf=None, log_in_keyval=False, compress_log=False): argument
128 if not logf:
129 logf = cmd.replace(" ", "_")
130 super(command, self).__init__(logf, log_in_keyval)
137 r %= (self.cmd, self.logf, self.log_in_keyval)
143 return (self.cmd, self.logf) == (other.cmd, other.logf)
157 return hash((self.cmd, self.logf))
168 logf_path = os.path.join(logdir, self.logf)
209 command(cmd, logf=cmd.replace(" ", "_") + '.before'))
212 logfile(fname, logf=os.path.basename(fname) + '.before'))
218 command(cmd, logf=cmd.replace(" ", "_") + '.after'))
221 logfile(fname, logf=os.path.basename(fname) + '.after'))
224 self.test_loggables.add(command("df -mP", logf="df"))
229 logf='dmesg',
232 logf='journal',
237 self.boot_loggables.add(logfile('/proc/mounts', logf='proc_mounts'))
239 logf='uname',
452 keyval["sysinfo-" + log.logf] = log.readline(logdir)