validateflow: interpolate folder directories into pipeline descriptions.

Allow 'pipeline' fields in validateflow to be interpolated with
directory keys like $(medias)s.
This commit is contained in:
Charlie Turner 2019-02-19 17:36:23 +00:00 committed by Thibault Saunier
parent b20f73099f
commit a443b921a2

View 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)