mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 18:22:23 +00:00
validate:launcher: Remove now useless code to check sending EOS brings down the pipeline
If we want to make an exception we can use known issues these days
This commit is contained in:
parent
d73e283691
commit
ba69336bf8
1 changed files with 0 additions and 24 deletions
|
@ -772,10 +772,6 @@ class GstValidateTest(Test):
|
||||||
expected_issues=expected_issues,
|
expected_issues=expected_issues,
|
||||||
workdir=workdir)
|
workdir=workdir)
|
||||||
|
|
||||||
# defines how much the process can be outside of the configured
|
|
||||||
# segment / seek
|
|
||||||
self._sent_eos_time = None
|
|
||||||
|
|
||||||
if scenario is None or scenario.name.lower() == "none":
|
if scenario is None or scenario.name.lower() == "none":
|
||||||
self.scenario = None
|
self.scenario = None
|
||||||
else:
|
else:
|
||||||
|
@ -794,8 +790,6 @@ class GstValidateTest(Test):
|
||||||
self.speed = speed
|
self.speed = speed
|
||||||
|
|
||||||
def add_action_execution(self, action_infos):
|
def add_action_execution(self, action_infos):
|
||||||
if action_infos['action-type'] == 'eos':
|
|
||||||
self._sent_eos_time = time.time()
|
|
||||||
self.actions_infos.append(action_infos)
|
self.actions_infos.append(action_infos)
|
||||||
|
|
||||||
def get_override_file(self, media_descriptor):
|
def get_override_file(self, media_descriptor):
|
||||||
|
@ -812,23 +806,6 @@ class GstValidateTest(Test):
|
||||||
return self.position
|
return self.position
|
||||||
|
|
||||||
def get_current_value(self):
|
def get_current_value(self):
|
||||||
if self.scenario:
|
|
||||||
if self._sent_eos_time is not None:
|
|
||||||
t = time.time()
|
|
||||||
if ((t - self._sent_eos_time)) > self.timeout:
|
|
||||||
if self.media_descriptor is not None and self.media_descriptor.get_protocol() == Protocols.HLS:
|
|
||||||
self.set_result(Result.PASSED,
|
|
||||||
"""Got no EOS %s seconds after sending EOS,
|
|
||||||
in HLS known and tolerated issue:
|
|
||||||
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/132"""
|
|
||||||
% self.timeout)
|
|
||||||
return Result.KNOWN_ERROR
|
|
||||||
|
|
||||||
self.set_result(
|
|
||||||
Result.FAILED, "Pipeline did not stop 30 Seconds after sending EOS")
|
|
||||||
|
|
||||||
return Result.FAILED
|
|
||||||
|
|
||||||
return self.position
|
return self.position
|
||||||
|
|
||||||
def get_subproc_env(self):
|
def get_subproc_env(self):
|
||||||
|
@ -863,7 +840,6 @@ class GstValidateTest(Test):
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
Test.clean(self)
|
Test.clean(self)
|
||||||
self._sent_eos_time = None
|
|
||||||
self.reports = []
|
self.reports = []
|
||||||
self.position = -1
|
self.position = -1
|
||||||
self.media_duration = -1
|
self.media_duration = -1
|
||||||
|
|
Loading…
Reference in a new issue