[CRIU] [PATCH 3/3] zdtm: Reduce waiting time to 5 seconds

Cyrill Gorcunov gorcunov at openvz.org
Fri Jun 1 12:38:13 EDT 2012


50 seconds is too long to wait for erro,
usually tests should not consume more than
a couple of seconds to run.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 test/zdtm.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/zdtm.sh b/test/zdtm.sh
index 230292c..0c5906b 100644
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -116,7 +116,7 @@ run_test()
 		diff_fds $ddump/dump.fd $ddump/dump.fd.after || return 1
 		killall -CONT $tname
 	else
-		for i in `seq 50`; do
+		for i in `seq 5`; do
 			killall -9 $tname &> /dev/null || break
 			echo Waiting for $tname complete dumping...
 			sleep 1
@@ -131,7 +131,7 @@ run_test()
 
 	echo Check results $pid
 	make -C $tdir $tname.out
-	for i in `seq 50`; do
+	for i in `seq 5`; do
 		test -f $test.out && break
 		echo Waiting for results on $test.out...
 		sleep 1
-- 
1.7.7.6



More information about the CRIU mailing list