summaryrefslogtreecommitdiffstats
path: root/test/run-all-tests
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2014-07-30 09:41:21 -0700
committerAlex Light <allight@google.com>2014-07-30 11:08:58 -0700
commitbfac14acef0c2327ef8c28f146dd17d009aa8669 (patch)
tree8b1e6943ab8923f4519421af221dbbe2c5c77027 /test/run-all-tests
parentef57ed72a3ac856f6115ae89c609d4fd892e8c41 (diff)
downloadart-bfac14acef0c2327ef8c28f146dd17d009aa8669.tar.gz
art-bfac14acef0c2327ef8c28f146dd17d009aa8669.tar.bz2
art-bfac14acef0c2327ef8c28f146dd17d009aa8669.zip
Add --always-clean flag to run-test.
This flag makes run-test remove the test-artifacts even if it fails. Also enable this option by default when doing run-tests with make. Add a ART_TEST_RUN_TEST_ALWAYS_CLEAN environment variable to control this option. Change-Id: I7867b400d570d8d679d9822d1fa65f49eb3522ae
Diffstat (limited to 'test/run-all-tests')
-rwxr-xr-xtest/run-all-tests4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/run-all-tests b/test/run-all-tests
index 02f46f9169..284cca0f19 100755
--- a/test/run-all-tests
+++ b/test/run-all-tests
@@ -95,6 +95,8 @@ while true; do
elif [ "x$1" = "x--prebuild" ]; then
run_args="${run_args} --prebuild"
shift;
+ elif [ "x$1" = "x--always-clean" ]; then
+ run_args="${run_args} --always-clean"
elif expr "x$1" : "x--" >/dev/null 2>&1; then
echo "unknown $0 option: $1" 1>&2
usage="yes"
@@ -114,7 +116,7 @@ if [ "$usage" = "yes" ]; then
"further documentation:"
echo " --debug --dev --host --interpreter --jvm --no-optimize"
echo " --no-verify -O --update --valgrind --zygote --64 --relocate"
- echo " --prebuild"
+ echo " --prebuild --always-clean"
echo " Specific Runtime Options:"
echo " --seq Run tests one-by-one, avoiding failures caused by busy CPU"
) 1>&2