mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 20:20:38 +00:00
launcher: Raise an exception when provided scenario can't be found
This commit is contained in:
parent
e1129d2516
commit
556bc0bb4f
1 changed files with 4 additions and 1 deletions
|
@ -277,8 +277,11 @@ class GstValidatePipelineTestsGenerator(GstValidateTestsGenerator):
|
|||
|
||||
for scenario in scenarios_to_iterate:
|
||||
if isinstance(scenario, str):
|
||||
scenario = self.test_manager.scenarios_manager.get_scenario(
|
||||
tmpscenario = self.test_manager.scenarios_manager.get_scenario(
|
||||
scenario)
|
||||
if tmpscenario is None:
|
||||
raise RuntimeError("Could not find scenario file: %s" % scenario)
|
||||
scenario = tmpscenario
|
||||
|
||||
mediainfo = FakeMediaDescriptor(extra_data, pipeline)
|
||||
if not mediainfo.is_compatible(scenario):
|
||||
|
|
Loading…
Reference in a new issue