From 2576be290ffb38eab719526b1c64a1edaab41030 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Tue, 24 May 2016 10:24:53 -0700 Subject: [PATCH] Increase test timeouts Increased for strace to 30 min. Increased other places by 100% to help prevent random timeouts on overloaded machines. Change-Id: I9dd4def34513062723ae6744eabc2bacc68b4e0f --- test/etc/run-test-jar | 8 ++++++-- test/run-test | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/etc/run-test-jar b/test/etc/run-test-jar index aa45d40cb..4e9970235 100755 --- a/test/etc/run-test-jar +++ b/test/etc/run-test-jar @@ -42,9 +42,9 @@ SECONDARY_DEX="" TIME_OUT="gdb" # "n" (disabled), "timeout" (use timeout), "gdb" (use gdb) # Value in seconds if [ "$ART_USE_READ_BARRIER" = "true" ]; then - TIME_OUT_VALUE=900 # 15 minutes. + TIME_OUT_VALUE=1800 # 30 minutes. else - TIME_OUT_VALUE=600 # 10 minutes. + TIME_OUT_VALUE=1200 # 20 minutes. fi USE_GDB="n" USE_JVM="n" @@ -199,6 +199,10 @@ while true; do shift INSTRUCTION_SET_FEATURES="$1" shift + elif [ "x$1" = "x--timeout" ]; then + shift + TIME_OUT_VALUE="$1" + shift elif [ "x$1" = "x--" ]; then shift break diff --git a/test/run-test b/test/run-test index 2710ea32b..d4a02f38f 100755 --- a/test/run-test +++ b/test/run-test @@ -241,7 +241,7 @@ while true; do shift elif [ "x$1" = "x--strace" ]; then strace="yes" - run_args="${run_args} --invoke-with strace --invoke-with -o --invoke-with $tmp_dir/$strace_output" + run_args="${run_args} --timeout 1800 --invoke-with strace --invoke-with -o --invoke-with $tmp_dir/$strace_output" shift elif [ "x$1" = "x--zygote" ]; then run_args="${run_args} --zygote" -- 2.11.0