Increase timeout for tests while running under valgrind
- The tests seems to take longer time while running under
valgrind.
- Added '-t' argument for the meson tests which increases the
time out value by a mentioned multiplier value for each test
while running under valgrind.
- Set the multiplier value to 10, so that we can wait for 300 seconds
before we timeout for tests that runs under valgrind.
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: I29f3e40da388b732b37bdeb03155111de35bbce3
diff --git a/scripts/unit-test.py b/scripts/unit-test.py
index 44e3a37..29545dc 100755
--- a/scripts/unit-test.py
+++ b/scripts/unit-test.py
@@ -945,10 +945,10 @@
return
try:
if self._setup_exists('valgrind'):
- check_call_cmd('meson', 'test', '-C', 'build',
+ check_call_cmd('meson', 'test','-t','10','-C', 'build',
'--setup', 'valgrind')
else:
- check_call_cmd('meson', 'test', '-C', 'build',
+ check_call_cmd('meson', 'test','-t','10', '-C', 'build',
'--wrapper', 'valgrind')
except CalledProcessError:
for root, _, files in os.walk(os.getcwd()):