mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
validate:launcher: Properly set error message when sending EOS did not work
This commit is contained in:
parent
da6dc3882b
commit
bd936dae4c
2 changed files with 5 additions and 2 deletions
|
@ -220,6 +220,8 @@ class GstValidateLaunchTest(GstValidateTest):
|
||||||
https://bugzilla.gnome.org/show_bug.cgi?id=723868""")
|
https://bugzilla.gnome.org/show_bug.cgi?id=723868""")
|
||||||
return Result.KNOWN_ERROR
|
return Result.KNOWN_ERROR
|
||||||
|
|
||||||
|
self.set_result(Result.FAILED, "Pipeline did not stop 30 Seconds after sending EOS")
|
||||||
|
|
||||||
return Result.FAILED
|
return Result.FAILED
|
||||||
|
|
||||||
return self.get_current_position()
|
return self.get_current_position()
|
||||||
|
@ -309,6 +311,7 @@ class GstValidateTranscodingTest(GstValidateTest):
|
||||||
https://bugzilla.gnome.org/show_bug.cgi?id=723868""")
|
https://bugzilla.gnome.org/show_bug.cgi?id=723868""")
|
||||||
return Result.KNOWN_ERROR
|
return Result.KNOWN_ERROR
|
||||||
|
|
||||||
|
self.set_result(Result.FAILED, "Pipeline did not stop 30 Seconds after sending EOS")
|
||||||
|
|
||||||
return Result.FAILED
|
return Result.FAILED
|
||||||
|
|
||||||
|
|
|
@ -169,7 +169,6 @@ class Test(Loggable):
|
||||||
break
|
break
|
||||||
continue
|
continue
|
||||||
elif val is Result.FAILED:
|
elif val is Result.FAILED:
|
||||||
self.set_result(Result.FAILED)
|
|
||||||
break
|
break
|
||||||
elif val is Result.KNOWN_ERROR:
|
elif val is Result.KNOWN_ERROR:
|
||||||
break
|
break
|
||||||
|
@ -183,7 +182,7 @@ class Test(Loggable):
|
||||||
self.set_result(Result.TIMEOUT)
|
self.set_result(Result.TIMEOUT)
|
||||||
break
|
break
|
||||||
elif self.hard_timeout and time.time() - start_ts > self.hard_timeout:
|
elif self.hard_timeout and time.time() - start_ts > self.hard_timeout:
|
||||||
self.set_result(Result.TIMEOUT)
|
self.set_result(Result.TIMEOUT, "Hard timeout reached: %d", self.hard_timeout)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
last_change_ts = time.time()
|
last_change_ts = time.time()
|
||||||
|
@ -703,6 +702,7 @@ class ScenarioManager(Loggable):
|
||||||
Loggable.__init__(cls._instance)
|
Loggable.__init__(cls._instance)
|
||||||
|
|
||||||
return cls._instance
|
return cls._instance
|
||||||
|
|
||||||
def _discover_scenarios(self):
|
def _discover_scenarios(self):
|
||||||
scenario_defs = os.path.join(self.config.main_dir, "scenarios.def")
|
scenario_defs = os.path.join(self.config.main_dir, "scenarios.def")
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue