]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
suite.py: must pass at least once through the backtrack loop 888/head
authorDan Mick <dan.mick@redhat.com>
Tue, 28 Jun 2016 02:11:22 +0000 (19:11 -0700)
committerDan Mick <dan.mick@redhat.com>
Tue, 28 Jun 2016 02:12:22 +0000 (19:12 -0700)
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 <dan.mick@redhat.com>
teuthology/suite/run.py

index fbbc6363408068198fff5db67a647117ecab7139..3addb602da074db06665d7961145066a239e3ad7 100644 (file)
@@ -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: