launcher: Raise an exception when provided scenario can't be found

This commit is contained in:
Thibault Saunier 2019-07-10 16:52:45 -04:00 committed by Philippe Normand
parent e1129d2516
commit 556bc0bb4f

View file

@ -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):