[PATCH liburing] tests: identify timed out tests correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 test/runtests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.24.0




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux