mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
validate:launcher: Add a way to specify tests filtering only on defaults
This commit is contained in:
parent
be72ec5f6a
commit
da6dc3882b
2 changed files with 5 additions and 2 deletions
|
@ -505,5 +505,6 @@ class GstValidateManager(TestsManager, Loggable):
|
||||||
|
|
||||||
def set_settings(self, options, args, reporter):
|
def set_settings(self, options, args, reporter):
|
||||||
TestsManager.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
|
self._run_defaults = False
|
||||||
|
|
|
@ -47,7 +47,9 @@ def main():
|
||||||
parser.add_option("-t", "--wanted-tests", dest="wanted_tests",
|
parser.add_option("-t", "--wanted-tests", dest="wanted_tests",
|
||||||
default=[],
|
default=[],
|
||||||
action="append",
|
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",
|
parser.add_option("-b", "--blacklisted-tests", dest="blacklisted_tests",
|
||||||
default=[],
|
default=[],
|
||||||
action="append",
|
action="append",
|
||||||
|
|
Loading…
Reference in a new issue