tests: identify timed out tests correctly
PATCH 1/1 tests: identify timed out tests correctly
We want to get a stable status (i.e. -124) when a test has timed out, but --preserve-status makes it to return whatever the process got. Remove the flag, it behaves same but if timed out passes back -124.
Signed-off-by Pavel Begunkov <[email protected]>
--- test/runtests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
test/runtests.sh +1 -1
@@ -84,7 +84,7 @@ run_test() fi # Run the test - timeout --preserve-status -s INT -k $TIMEOUT $TIMEOUT ./$test_name $dev + timeout -s INT -k $TIMEOUT $TIMEOUT ./$test_name $dev local status=$? # Check test status
Signature · 1 line
2.24.0
Quoted 3 lines · Pavel Begunkov
We want to get a stable status (i.e. -124) when a test has timed out, but --preserve-status makes it to return whatever the process got. Remove the flag, it behaves same but if timed out passes back -124.
Applied, thanks.
Signature · 1 line
Jens Axboe