summary refs log tree commit diff stats
path: root/scripts/mtest2make.py
diff options
context:
space:
mode:
authorDmitry Frolov <frolov@swemel.ru>2024-11-13 12:43:40 +0300
committerFabiano Rosas <farosas@suse.de>2024-12-12 10:25:38 -0300
commit94aa1a0e30065e06ee81cd9f71cccb0c393ede3f (patch)
tree42add12ef68c6480548b3ab38d8c2db370659435 /scripts/mtest2make.py
parenta5ba0a7e4e150d1350a041f0d0ef9ca6c8d7c307 (diff)
downloadfocaccia-qemu-94aa1a0e30065e06ee81cd9f71cccb0c393ede3f.tar.gz
focaccia-qemu-94aa1a0e30065e06ee81cd9f71cccb0c393ede3f.zip
tests/qtest: add TIMEOUT_MULTIPLIER
Some tests need more time when qemu is built with
"--enable-asan --enable-ubsan"

As was discussed here:
https://patchew.org/QEMU/20241112120100.176492-2-frolov@swemel.ru/

TIMEOUT_MULTIPLIER enviroment variable will be
a useful option, allowing non-invasive timeouts
increasing for a specific build.

Signed-off-by: Dmitry Frolov <frolov@swemel.ru>
Tested-by: Fabiano Rosas <farosas@suse.de>
[changed from ifndef to ?=]
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'scripts/mtest2make.py')
-rw-r--r--scripts/mtest2make.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mtest2make.py b/scripts/mtest2make.py
index eb01a05ddb..2ef375fc6f 100644
--- a/scripts/mtest2make.py
+++ b/scripts/mtest2make.py
@@ -27,7 +27,7 @@ SPEED = quick
 .speed.slow = $(foreach s,$(sort $(filter-out %-thorough, $1)), --suite $s)
 .speed.thorough = $(foreach s,$(sort $1), --suite $s)
 
-TIMEOUT_MULTIPLIER = 1
+TIMEOUT_MULTIPLIER ?= 1
 .mtestargs = --no-rebuild -t $(TIMEOUT_MULTIPLIER)
 ifneq ($(SPEED), quick)
 .mtestargs += --setup $(SPEED)