mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-29 01:35:06 +00:00
validate:launcher: Allow specifying a timeout factor
This commit is contained in:
parent
085ebf03ba
commit
1f9c67e6ff
|
@ -46,6 +46,7 @@ from .utils import mkdir, Result, Colors, printc, DEFAULT_TIMEOUT, GST_SECOND, \
|
||||||
# The factor by which we increase the hard timeout when running inside
|
# The factor by which we increase the hard timeout when running inside
|
||||||
# Valgrind
|
# Valgrind
|
||||||
GDB_TIMEOUT_FACTOR = VALGRIND_TIMEOUT_FACTOR = 20
|
GDB_TIMEOUT_FACTOR = VALGRIND_TIMEOUT_FACTOR = 20
|
||||||
|
TIMEOUT_FACTOR = float(os.environ.get("TIMEOUT_FACTOR", 1))
|
||||||
# The error reported by valgrind when detecting errors
|
# The error reported by valgrind when detecting errors
|
||||||
VALGRIND_ERROR_CODE = 20
|
VALGRIND_ERROR_CODE = 20
|
||||||
|
|
||||||
|
@ -70,8 +71,11 @@ class Test(Loggable):
|
||||||
@hard_timeout: Max time the test can take in absolute
|
@hard_timeout: Max time the test can take in absolute
|
||||||
"""
|
"""
|
||||||
Loggable.__init__(self)
|
Loggable.__init__(self)
|
||||||
self.timeout = timeout
|
self.timeout = timeout * TIMEOUT_FACTOR
|
||||||
self.hard_timeout = hard_timeout
|
if hard_timeout:
|
||||||
|
self.hard_timeout = hard_timeout * TIMEOUT_FACTOR
|
||||||
|
else:
|
||||||
|
self.hard_timeout = hard_timeout
|
||||||
self.classname = classname
|
self.classname = classname
|
||||||
self.options = options
|
self.options = options
|
||||||
self.application = application_name
|
self.application = application_name
|
||||||
|
|
Loading…
Reference in a new issue