From: Zack Cerza Date: Fri, 2 Dec 2016 20:39:39 +0000 (-0700) Subject: suite: Correct rerun behavior when no jobs match X-Git-Tag: 1.1.0~490^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F993%2Fhead;p=teuthology.git suite: Correct rerun behavior when no jobs match Also remove a stray print statement Signed-off-by: Zack Cerza --- diff --git a/teuthology/suite/__init__.py b/teuthology/suite/__init__.py index 3949e4fb6..ab6c533ad 100644 --- a/teuthology/suite/__init__.py +++ b/teuthology/suite/__init__.py @@ -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'])