return True
else:
args.extend(["--expected-results", media_info])
- else:
+ elif self.options.generate_info:
args.extend(["--output-file", media_info])
+ else:
+ return True
subprocess.check_output(args)
self._check_discovering_info(media_info, uri)
if "__uri__" in pipe:
for uri, config in self._list_uris():
npipe = pipe
- if scenario in SEEKING_REQUIERED_SCENARIO:
+ if scenario != "none":
if config.getboolean("media-info", "seekable") is False:
self.debug("Do not run %s as %s does not support seeking",
scenario, uri)
parser.add_option("-n", "--no-color", dest="no_color",
action="store_true", default=False,
help="Set it to output no colored text in the terminal")
+ parser.add_option("-g", "--generate-media-info", dest="generate_info",
+ action="store_true", default=False,
+ help="Set it in order to generate the missing .media_infos files")
loggable.init("GST_VALIDATE_LAUNCHER_DEBUG", True, False)
tests_launcher.set_settings(options, args)
- if options.list_tests:
- for test in tests_launcher.tests:
- printc(test)
- return 0
-
if options.paths == [os.path.join(DEFAULT_GST_QA_ASSETS, "medias")]:
if os.path.exists(DEFAULT_GST_QA_ASSETS):
launch_command("cd %s && git pull --rebase" % DEFAULT_GST_QA_ASSETS)
launch_command("git clone %s %s" % (DEFAULT_GST_QA_ASSETS_REPO, DEFAULT_GST_QA_ASSETS))
tests_launcher.list_tests()
+
+ if options.list_tests:
+ for test in tests_launcher.tests:
+ printc(test)
+ return 0
+
tests_launcher.run_tests()
tests_launcher.final_report()