run-test: add --external-log-tags options
Bug: 171770326
Test: art/test/run-test --host 001-HelloWorld
Test: ANDROID_LOG_TAGS="*:V" art/test/run-test --external-log-tags \
--host 001-HelloWorld
Test: ANDROID_LOG_TAGS="*:E" art/test/run-test --external-log-tags \
--host 001-HelloWorld
Change-Id: Ibe27047549fd7c3c556e2e754015a2cfaa97d6cf
diff --git a/test/run-test b/test/run-test
index 2c4b125..83897c5 100755
--- a/test/run-test
+++ b/test/run-test
@@ -352,6 +352,9 @@
elif [ "x$1" = "x--no-precise" ]; then
run_args+=(--no-precise)
shift
+ elif [ "x$1" = "x--external-log-tags" ]; then
+ run_args+=(--external-log-tags)
+ shift
elif [ "x$1" = "x--invoke-with" ]; then
shift
what="$1"
@@ -851,6 +854,8 @@
echo " --instruction-set-features [string]"
echo " Set instruction-set-features for compilation."
echo " --quiet Don't print anything except failure messages"
+ echo " --external-log-tags Use ANDROID_LOG_TAGS to set a custom logging level for"
+ echo " a test run."
echo " --bisection-search Perform bisection bug search."
echo " --vdex Test using vdex as in input to dex2oat. Only works with --prebuild."
echo " --suspend-timeout Change thread suspend timeout ms (default 500000)."