mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
validate:launcher: Let the user set user options in the config file
This commit is contained in:
parent
b9389c85c2
commit
5266fee48c
2 changed files with 5 additions and 1 deletions
|
@ -477,6 +477,9 @@ You can also set default values with:
|
||||||
* gst_validate_register_default_test_generators: Sets default values for the TestGenerators to be used
|
* gst_validate_register_default_test_generators: Sets default values for the TestGenerators to be used
|
||||||
* gst_validate_register_default_scenarios: Sets default values for the scenarios to be executed
|
* gst_validate_register_default_scenarios: Sets default values for the scenarios to be executed
|
||||||
* gst_validate_register_default_encoding_formats: Sets default values for the encoding formats to be tested
|
* gst_validate_register_default_encoding_formats: Sets default values for the encoding formats to be tested
|
||||||
|
|
||||||
|
Note: In the config file, you have acces to the options variable resulting from the parsing of the command line
|
||||||
|
user argument, you can thus overrides command line options using that.
|
||||||
""")
|
""")
|
||||||
|
|
||||||
def _populate_testsuite(self, options):
|
def _populate_testsuite(self, options):
|
||||||
|
@ -485,6 +488,7 @@ You can also set default values with:
|
||||||
return
|
return
|
||||||
|
|
||||||
if options.validate_config:
|
if options.validate_config:
|
||||||
|
globals()["options"] = options
|
||||||
execfile(options.validate_config, globals())
|
execfile(options.validate_config, globals())
|
||||||
else:
|
else:
|
||||||
gst_validate_register_defaults()
|
gst_validate_register_defaults()
|
||||||
|
|
|
@ -134,7 +134,7 @@ DEFAULT_GST_QA_ASSETS_REPO = "git://people.freedesktop.org/~tsaunier/gst-qa-asse
|
||||||
|
|
||||||
class PrintUsage(argparse.Action):
|
class PrintUsage(argparse.Action):
|
||||||
def __init__(self, option_strings, dest=argparse.SUPPRESS, default=argparse.SUPPRESS, help=None):
|
def __init__(self, option_strings, dest=argparse.SUPPRESS, default=argparse.SUPPRESS, help=None):
|
||||||
super(PrintUsage, self).__init__( option_strings=option_strings, dest=dest,
|
super(PrintUsage, self).__init__(option_strings=option_strings, dest=dest,
|
||||||
default=default, nargs=0, help=help)
|
default=default, nargs=0, help=help)
|
||||||
|
|
||||||
def __call__(self, parser, namespace, values, option_string=None):
|
def __call__(self, parser, namespace, values, option_string=None):
|
||||||
|
|
Loading…
Reference in a new issue