Skip to contentSkip to conversation

tests: identify timed out tests correctly

PATCH Applied Pavel Begunkov 2 participants 2 messages Jan 4, 2021 – Jan 6, 2021 io_uring

lore
Share & tools
lore
#0 lore raw

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.

---
 test/runtests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/runtests.sh +1 -1
index fa240f2..7ed8852 100755
@@ -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
maintainer Applied
#1 lore raw
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