validate:launcher: Let the user set user options in the config file
This commit is contained in:
parent
b9389c85c2
commit
5266fee48c
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user