validate:launcher: Set CK_MULTIPLIER=10 in GstCheck tests when using valgrind

Fixes https://gitlab.freedesktop.org/gstreamer/gst-devtools/issues/39
This commit is contained in:
Thibault Saunier 2019-03-22 10:48:03 -03:00
parent bf12d56f14
commit 6310145a44

View file

@ -32,6 +32,7 @@ import concurrent.futures as conc
from launcher import config
from launcher.utils import printc, Colors
from launcher.main import setup_launcher_from_args
from launcher.baseclasses import VALGRIND_TIMEOUT_FACTOR
class MesonTest(Test):
@ -274,6 +275,8 @@ class GstCheckTestsManager(MesonTestsManager):
if check_name:
child_env['GST_CHECKS'] = check_name
if self.options.valgrind:
child_env['CK_TIMEOUT_MULTIPLIER'] = str(VALGRIND_TIMEOUT_FACTOR)
if self.options.gst_check_leak_trace_testnames:
if re.findall(self.options.gst_check_leak_trace_testnames, testname):
leak_tracer = "leaks"