When listing tests, checking whether uri is present or not and displaying error.
But uri does notneed to be present in case of pipeline generator. So the condition check is wrong.
This results in validateelements testsuite not working. Hence modifying the condition to
not error out on valid cases.
https://bugzilla.gnome.org/show_bug.cgi?id=762422
scenarios = self.scenarios_manager.get_scenario(None)
uris = self._list_uris()
- if uris:
- for generator in self.get_generators():
- for test in generator.generate_tests(uris, scenarios):
- self.add_test(test)
- else:
+ for generator in self.get_generators():
+ for test in generator.generate_tests(uris, scenarios):
+ self.add_test(test)
+
+ if not self.tests and not uris:
printc("No valid uris present in the path. Check if media files and info files exist", Colors.FAIL)
return self.tests