mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
validate: launcher: Take the timeout as ref timeout to compute hard_timeout
when it is provided.
This commit is contained in:
parent
5beaf5dfa8
commit
1e39db18ad
1 changed files with 8 additions and 5 deletions
|
@ -296,15 +296,18 @@ class GstValidateTest(Test):
|
|||
timeout=DEFAULT_TIMEOUT, scenario=None, hard_timeout=None):
|
||||
|
||||
if not hard_timeout and self.HARD_TIMEOUT_FACTOR:
|
||||
if duration:
|
||||
if timeout:
|
||||
hard_timeout = timeout * self.HARD_TIMEOUT_FACTOR
|
||||
elif duration:
|
||||
hard_timeout = duration * self.HARD_TIMEOUT_FACTOR
|
||||
else:
|
||||
hard_timeout = None
|
||||
|
||||
super(
|
||||
GstValidateTest, self).__init__(application_name, classname, options,
|
||||
reporter, duration=duration,
|
||||
timeout=timeout, hard_timeout=hard_timeout)
|
||||
super(GstValidateTest, self).__init__(application_name, classname,
|
||||
options, reporter,
|
||||
duration=duration,
|
||||
timeout=timeout,
|
||||
hard_timeout=hard_timeout)
|
||||
|
||||
# defines how much the process can be outside of the configured
|
||||
# segment / seek
|
||||
|
|
Loading…
Reference in a new issue