From 5dc130c08714053780b993fb7b4da871c7448f5d Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Mon, 27 Jun 2016 19:11:22 -0700 Subject: [PATCH] suite.py: must pass at least once through the backtrack loop Changing the default of newest to '0' meant that the combined loop which handles both backtrack and non-backtrack conditions was never executing, leading to undefined variables. Signed-off-by: Dan Mick --- teuthology/suite/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/suite/run.py b/teuthology/suite/run.py index fbbc636340..3addb602da 100644 --- a/teuthology/suite/run.py +++ b/teuthology/suite/run.py @@ -418,7 +418,7 @@ class Run(object): # if not, do it once backtrack = 0 limit = self.args.newest - while backtrack < limit: + while backtrack <= limit: jobs_missing_packages, jobs_to_schedule = \ self.collect_jobs(arch, configs, self.args.newest) if jobs_missing_packages and self.args.newest: -- 2.39.5