tests/qemu-iotests/183: Fix timeout issue when running tests in parallel
PATCH 1/1 tests/qemu-iotests/183: Fix timeout issue when running tests in parallel
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 <[email protected]>
---
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(-)
tests/qemu-iotests/183 +3 -1
@@ -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
Signature · 1 line
2.39.3