summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-01-04 20:34:54 +0000
committerJens Axboe <axboe@kernel.dk>2021-01-06 11:40:40 -0700
commitcf2ad2a32f6fe2678b4e9ebfabc0f18e31a842a3 (patch)
tree78d4d7ad65fddb241d6c25f9b6ac1c938fc2fe21
parentf020d23cb0dc70cc301b1e489aa28ef727bec1a1 (diff)
downloadliburing-cf2ad2a32f6fe2678b4e9ebfabc0f18e31a842a3.tar.gz
liburing-cf2ad2a32f6fe2678b4e9ebfabc0f18e31a842a3.tar.bz2
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 <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rwxr-xr-xtest/runtests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/runtests.sh b/test/runtests.sh
index fa240f2..7ed8852 100755
--- a/test/runtests.sh
+++ b/test/runtests.sh
@@ -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