From 186f442f4cd4a8434c4e2d4e2c0de97b855c5586 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 2 Apr 2006 12:52:59 +0000 Subject: r14865: - enforce timelimits for the tests - and skip some long tests for now metze (This used to be commit 1d52ae786d400441d9f5b30b4fa9e4e8ff64f7e4) --- source3/script/tests/test_functions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/script/tests/test_functions.sh') diff --git a/source3/script/tests/test_functions.sh b/source3/script/tests/test_functions.sh index 4e3b8ce7db..6ad1c6951b 100644 --- a/source3/script/tests/test_functions.sh +++ b/source3/script/tests/test_functions.sh @@ -161,7 +161,10 @@ testit() { return 1 fi - ( $cmdline > $TEST_LOG 2>&1 ) + if [ -z "$TORTURE_MAXTIME" ];then + TORTURE_MAXTIME=300 + fi + ( timelimit $TORTURE_MAXTIME $cmdline > $TEST_LOG 2>&1 ) status=$? if [ x"$status" != x"0" ]; then echo "TEST OUTPUT:" -- cgit