mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
validate: Handle long tests in the TestManager
+ Minor bug fixes
This commit is contained in:
parent
523e279e91
commit
ff2ccb71ac
2 changed files with 11 additions and 8 deletions
|
@ -75,7 +75,6 @@ class XgesProjectDescriptor(MediaDescriptor):
|
||||||
|
|
||||||
def get_duration(self):
|
def get_duration(self):
|
||||||
if self._duration:
|
if self._duration:
|
||||||
print("RETURN %s" % self._duration)
|
|
||||||
return self._duration
|
return self._duration
|
||||||
|
|
||||||
for l in self._root.iter():
|
for l in self._root.iter():
|
||||||
|
@ -87,7 +86,6 @@ class XgesProjectDescriptor(MediaDescriptor):
|
||||||
self.error("%s does not have duration! (setting 2mins)" % self._uri)
|
self.error("%s does not have duration! (setting 2mins)" % self._uri)
|
||||||
self._duration = 2 * 60
|
self._duration = 2 * 60
|
||||||
|
|
||||||
print("RETURN %s" % self._duration)
|
|
||||||
return self._duration
|
return self._duration
|
||||||
|
|
||||||
def get_protocol(self):
|
def get_protocol(self):
|
||||||
|
@ -191,7 +189,7 @@ class GESRenderTest(GESTest, GstValidateEncodingTestInterface):
|
||||||
|
|
||||||
if missing_eos is True:
|
if missing_eos is True:
|
||||||
self.set_result(utils.Result.TIMEOUT, "The rendered file add right duration, MISSING EOS?\n",
|
self.set_result(utils.Result.TIMEOUT, "The rendered file add right duration, MISSING EOS?\n",
|
||||||
"failure", e)
|
"failure")
|
||||||
else:
|
else:
|
||||||
GstValidateTest.check_results(self)
|
GstValidateTest.check_results(self)
|
||||||
|
|
||||||
|
@ -272,12 +270,17 @@ Available options:""")
|
||||||
if os.path.exists(proj):
|
if os.path.exists(proj):
|
||||||
projects.append(proj)
|
projects.append(proj)
|
||||||
|
|
||||||
SCENARIOS = ["play_15s",
|
if self.options.long_limit != 0:
|
||||||
"scrub_forward_seeking",
|
scenarios = ["none",
|
||||||
"scrub_backward_seeking"]
|
"scrub_forward_seeking",
|
||||||
|
"scrub_backward_seeking"]
|
||||||
|
else:
|
||||||
|
scenarios = ["play_15s",
|
||||||
|
"scrub_forward_seeking_full",
|
||||||
|
"scrub_backward_seeking_full"]
|
||||||
for proj in projects:
|
for proj in projects:
|
||||||
# First playback casses
|
# First playback casses
|
||||||
for scenario_name in SCENARIOS:
|
for scenario_name in scenarios:
|
||||||
scenario = self._scenarios.get_scenario(scenario_name)
|
scenario = self._scenarios.get_scenario(scenario_name)
|
||||||
if scenario is None:
|
if scenario is None:
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -56,7 +56,7 @@ intr_handler (gpointer user_data)
|
||||||
g_print ("interrupt received.\n");
|
g_print ("interrupt received.\n");
|
||||||
|
|
||||||
GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (pipeline),
|
GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (pipeline),
|
||||||
GST_DEBUG_GRAPH_SHOW_ALL, "gst-validate.interupted");
|
GST_DEBUG_GRAPH_SHOW_ALL, "ges-launch.interupted");
|
||||||
|
|
||||||
g_main_loop_quit (mainloop);
|
g_main_loop_quit (mainloop);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue