From: Warren Usui Date: Fri, 7 Nov 2014 00:31:04 +0000 (-0800) Subject: More suite filter changes. X-Git-Tag: 1.1.0~1074^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F351%2Fhead;p=teuthology.git More suite filter changes. Comment change, and update help message to reflect the ability to use a comma separated list as a filter. --- diff --git a/scripts/suite.py b/scripts/suite.py index ea3d0fca3..4cfc88a7c 100644 --- a/scripts/suite.py +++ b/scripts/suite.py @@ -65,9 +65,12 @@ Scheduler arguments: --timeout How long, in seconds, to wait for jobs to finish before sending email. This does not kill jobs. [default: 32400] - --filter Only run jobs containing the string specified. - --filter-out Do not run jobs containing the string specified. - + --filter KEYWORDS Only run jobs whose name contains at least one + of the keywords in the comma separated keyword + string specified. + --filter-out KEYWORDS Do not run jobs whose name contains any of + the keywords in the comma separated keyword + string specified. """ diff --git a/teuthology/suite.py b/teuthology/suite.py index ba3ffda8d..6d24aeac8 100644 --- a/teuthology/suite.py +++ b/teuthology/suite.py @@ -448,6 +448,8 @@ def schedule_suite(job_config, 'Stopped after {limit} jobs due to --limit={limit}'.format( limit=limit)) break + # Break apart the filter parameter (one string) into comma separated + # components to be used in searches. if filter_in: filter_list = [x.strip() for x in filter_in.split(',')] if not any([x in description for x in filter_list]):