diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2020-05-10 04:08:41 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-05-10 04:08:41 +0000 |
commit | ec77a0337d2341034ba18004b65fa205ae5a0aac (patch) | |
tree | 1bf216a00f229a8121fd5e517835ce8d7e560e2a | |
parent | 984999a6af5b283a8865252be47004c57fdd2ab0 (diff) | |
parent | 031757712c52f0c33bb33fbbfcfd51dea55b5a4e (diff) | |
download | tests-ec77a0337d2341034ba18004b65fa205ae5a0aac.tar.gz |
Fix run_net_test.sh --norun. am: 031757712c
Change-Id: I80b490b8c85e6faec11e294edb507e83ac7b676c
-rwxr-xr-x | net/test/run_net_test.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/test/run_net_test.sh b/net/test/run_net_test.sh index ebfb15f..d1a66f5 100755 --- a/net/test/run_net_test.sh +++ b/net/test/run_net_test.sh @@ -178,16 +178,17 @@ fi test_args=${@:2} function isRunningTest() { - [[ -n "$test" ]] && ! (( norun )) + ! (( norun )) } function isBuildOnly() { - [[ -z "$test" ]] && (( norun )) && ! (( nobuild )) + (( norun )) && ! (( nobuild )) } if ! isRunningTest && ! isBuildOnly; then echo "Usage:" >&2 - echo " $0 [--builder] [--readonly|--ro|--readwrite|--rw] [--nobuild] [--verbose] <test>" >&2 + echo " $0 [--builder] [--readonly|--ro|--readwrite|--rw] [--nobuild] [--verbose] [<test>]" >&2 + echo " - if [<test>] is not specified, run all_tests.sh" >&2 echo " $0 --norun" >&2 exit 1 fi |