so we can set it if it is not initialized
Signed-off-by: Kefu Chai <kchai@redhat.com>
log_path = os.path.join(self.archive_base, run_name, 'results.log')
# parse the log file generated by teuthology.results.results()
subset = None
- seed = -1
+ seed = None
with file(log_path) as results_log:
for line in results_log:
if ':' not in line:
def get_rerun_conf(conf):
reporter = ResultsReporter()
subset, seed = reporter.get_rerun_conf(conf.rerun)
- if seed < 0:
+ if seed is None:
return conf.subset, conf.seed
if conf.seed < 0:
log.info('Using stored seed=%s', seed)