]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
suite: Correct rerun behavior when no jobs match 993/head
authorZack Cerza <zack@redhat.com>
Fri, 2 Dec 2016 20:39:39 +0000 (13:39 -0700)
committerZack Cerza <zack@redhat.com>
Fri, 2 Dec 2016 20:39:39 +0000 (13:39 -0700)
Also remove a stray print statement

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/suite/__init__.py

index 3949e4fb61c1e03adca8f14ef8c9eb1066d210ed..ab6c533ad6e903371664c56e76955cd284cbab96 100644 (file)
@@ -72,7 +72,12 @@ def main(args):
 
     if conf.rerun:
         rerun_filters = get_rerun_filters(conf.rerun, conf.rerun_statuses)
-        print rerun_filters
+        if len(rerun_filters['descriptions']) == 0:
+            log.warn(
+                "No jobs matched the status filters: %s",
+                conf.rerun_statuses,
+            )
+            return
         conf.filter_in.extend(rerun_filters['descriptions'])
         conf.suite = normalize_suite_name(rerun_filters['suite'])