From da6dc3882bce65c5986a709d09d066f4c5d1ce45 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 25 Apr 2014 13:18:41 +0200 Subject: [PATCH] validate:launcher: Add a way to specify tests filtering only on defaults --- validate/tools/launcher/apps/gst-validate.py | 3 ++- validate/tools/launcher/main.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/validate/tools/launcher/apps/gst-validate.py b/validate/tools/launcher/apps/gst-validate.py index f2bf87e..9f690e9 100644 --- a/validate/tools/launcher/apps/gst-validate.py +++ b/validate/tools/launcher/apps/gst-validate.py @@ -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 diff --git a/validate/tools/launcher/main.py b/validate/tools/launcher/main.py index 1add56f..9f5ce5f 100644 --- a/validate/tools/launcher/main.py +++ b/validate/tools/launcher/main.py @@ -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", -- 2.7.4