diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-01-15 18:26:08 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-01-15 18:26:08 -0500 |
commit | 31e784915eaf90bf5794ff4f96989b9ff509ec8e (patch) | |
tree | 80a2ef5c43839448a7b77f57f4be91b3fa8b43c2 /scripts/test | |
parent | ba5889011853bc1d86892b5379a87766b0380be5 (diff) | |
download | tor-31e784915eaf90bf5794ff4f96989b9ff509ec8e.tar.gz tor-31e784915eaf90bf5794ff4f96989b9ff509ec8e.zip |
Use [ -n "$x" ] in place of [ ! -z "$x" ] in chutney-git-bisect
Closes 29099.
Diffstat (limited to 'scripts/test')
-rwxr-xr-x | scripts/test/chutney-git-bisect.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/test/chutney-git-bisect.sh b/scripts/test/chutney-git-bisect.sh index dc1319a27a..dcf8ab1102 100755 --- a/scripts/test/chutney-git-bisect.sh +++ b/scripts/test/chutney-git-bisect.sh @@ -15,21 +15,21 @@ # Skips the test if <skip-flavour> fails (default no skip). CHUTNEY_TRIES=3 -if [ ! -z "$1" ]; then +if [ -n "$1" ]; then CHUTNEY_TRIES="$1" fi -if [ ! -z "$2" ]; then +if [ -n "$2" ]; then cd "$2" || exit fi CHUTNEY_TEST_CMD="make test-network-all" -if [ ! -z "$3" ]; then +if [ -n "$3" ]; then CHUTNEY_TEST_CMD="$CHUTNEY_PATH/tools/test-network.sh --flavour $3" fi CHUTNEY_SKIP_ON_FAIL_CMD="true" -if [ ! -z "$4" ]; then +if [ -n "$4" ]; then CHUTNEY_SKIP_ON_FAIL_CMD="$CHUTNEY_PATH/tools/test-network.sh --flavour $4" fi |