json tests: assume all user pipelines can seek reverse
authorMathieu Duponchelle <mathieu@centricular.com>
Fri, 26 Jul 2019 00:26:20 +0000 (02:26 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Fri, 26 Jul 2019 00:26:20 +0000 (02:26 +0200)
When doing a targeted test, it is up to the user to make sure
their pipeline + scenario behaves correctly.

validate/launcher/apps/gstvalidate.py

index b855eaf..3c7382f 100644 (file)
@@ -229,7 +229,7 @@ class GstValidatePipelineTestsGenerator(GstValidateTestsGenerator):
                         with open(scenario_file, 'w') as f:
                             f.write('\n'.join(action % extra_data for action in actions) + '\n')
                     scenarios.append(scenario_file)
-            tests_definition['extra_data'] = {'scenarios': scenarios, 'config_file': config_file}
+            tests_definition['extra_data'] = {'scenarios': scenarios, 'config_file': config_file, 'plays-reverse': True}
             tests_definition['pipeline_data'] = {"config_path": os.path.dirname(json_file)}
             tests_definition['pipeline_data'].update(extra_data)
             pipelines_descriptions.append(tests_definition)