From 2d1fcea05574d0ac70658cd32de7a36f09271f73 Mon Sep 17 00:00:00 2001 From: Robert Adam Date: Wed, 8 Jan 2025 12:10:48 +0100 Subject: [PATCH] Increase test timeout Due to some of the builds happening on an emulator, executing tests can take longer than 5 minutes (the default timeout) per test case. --- scripts/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index d6f345d..ba564ab 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -47,4 +47,6 @@ cmake \ cmake --build . -j $(nproc) -ctest --output-on-failure . -j $(nproc) +TEST_TIMEOUT=600 # seconds +export QTEST_FUNCTION_TIMEOUT="$(( $TEST_TIMEOUT * 1000 ))" # milliseconds +ctest --timeout $TIMEOUT --output-on-failure . -j $(nproc)