[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests/qemu-iotests/183: Fix timeout issue when running tests in
From: |
Thomas Huth |
Subject: |
[PATCH] tests/qemu-iotests/183: Fix timeout issue when running tests in parallel |
Date: |
Mon, 14 Aug 2023 16:51:24 +0200 |
When running "make check-block SPEED=slow -j$(nproc)", the test 183
fails due to the very low default timeout value since the system is
quite loaded and thus slower in this case. We need a much higher
value when running tests in parallel, so let's try to detect this
situation by looking for "-j..." in the MAKEFLAGS environment variable.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
PS: Yeah, I know, this is a little bit ugly ... if someone has a better
idea how to fix this, please let me know.
tests/qemu-iotests/183 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/183 b/tests/qemu-iotests/183
index ee62939e72..b50e0d2b85 100755
--- a/tests/qemu-iotests/183
+++ b/tests/qemu-iotests/183
@@ -97,7 +97,9 @@ if echo "$reply" | grep "compiled without old-style" >
/dev/null; then
fi
timeout_comm=$QEMU_COMM_TIMEOUT
-if [ "${VALGRIND_QEMU}" == "y" ]; then
+if echo "$MAKEFLAGS" | grep -q "\-j"; then
+ QEMU_COMM_TIMEOUT=10
+elif [ "${VALGRIND_QEMU}" == "y" ]; then
QEMU_COMM_TIMEOUT=4
else
QEMU_COMM_TIMEOUT=0.1
--
2.39.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] tests/qemu-iotests/183: Fix timeout issue when running tests in parallel,
Thomas Huth <=