From: Dan Mick Date: Tue, 28 Jun 2016 02:11:22 +0000 (-0700) Subject: suite.py: must pass at least once through the backtrack loop X-Git-Tag: 1.1.0~589^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F888%2Fhead;p=teuthology.git 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 --- diff --git a/teuthology/suite/run.py b/teuthology/suite/run.py index fbbc63634..3addb602d 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: