validateflow: interpolate folder directories into pipeline descriptions.
authorCharlie Turner <cturner@igalia.com>
Tue, 19 Feb 2019 17:36:23 +0000 (17:36 +0000)
committerThibault Saunier <tsaunier@gnome.org>
Thu, 21 Feb 2019 13:57:17 +0000 (13:57 +0000)
Allow 'pipeline' fields in validateflow to be interpolated with
directory keys like $(medias)s.

validate/launcher/apps/gstvalidate.py

index 75b0587..85355f1 100644 (file)
@@ -231,6 +231,7 @@ class GstValidatePipelineTestsGenerator(GstValidateTestsGenerator):
                     scenarios.append(scenario_file)
             tests_definition['extra_data'] = {'scenarios': scenarios, 'config_file': config_file}
             tests_definition['pipeline_data'] = {"config_path": os.path.dirname(json_file)}
+            tests_definition['pipeline_data'].update(extra_data)
             pipelines_descriptions.append(tests_definition)
 
         return GstValidatePipelineTestsGenerator(name, test_manager, pipelines_descriptions=pipelines_descriptions)