validate:launcher: Add a way to specify tests filtering only on defaults

This commit is contained in:
Thibault Saunier 2014-04-25 13:18:41 +02:00
parent be72ec5f6a
commit da6dc3882b
2 changed files with 5 additions and 2 deletions

View file

@ -505,5 +505,6 @@ class GstValidateManager(TestsManager, Loggable):
def set_settings(self, options, args, reporter):
TestsManager.set_settings(self, options, args, reporter)
if options.wanted_tests:
if options.wanted_tests and not [d for d in options.wanted_tests
if "defaults_only" in d]:
self._run_defaults = False

View file

@ -47,7 +47,9 @@ def main():
parser.add_option("-t", "--wanted-tests", dest="wanted_tests",
default=[],
action="append",
help="Define the tests to execute, it can be a regex")
help="Define the tests to execute, it can be a regex"
" if it contains defaults_only, only default scenarios"
" will be executed")
parser.add_option("-b", "--blacklisted-tests", dest="blacklisted_tests",
default=[],
action="append",