From: Colin Walters Date: Mon, 26 Mar 2018 17:23:25 +0000 (-0400) Subject: tests/installed: Fix TESTS= being empty X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~24^2~74 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d379f87405d4d19a857d4977271d473acfc85250;p=ostree.git tests/installed: Fix TESTS= being empty I broke this in https://github.com/ostreedev/ostree/pull/1509/commits/9b55aaea6f34b7094c44932a3c2e1cf2d54634fd I'd obviously tested *setting* it locally worked, but I didn't test that not having it set ran all the tests. I don't understand why we were doing the `+ ` pattern before; let's just check if it's empty. Closes: #1516 Approved by: jlebon --- diff --git a/tests/installed/run.sh b/tests/installed/run.sh index 38a9d769..8c7fe4d8 100755 --- a/tests/installed/run.sh +++ b/tests/installed/run.sh @@ -4,7 +4,7 @@ set -xeuo pipefail dn=$(dirname $0) for tn in ${dn}/itest-*.sh; do - if [ -n "${TESTS+ }" ]; then + if [ -n "${TESTS:-}" ]; then tbn=$(basename "$tn" .sh) tbn=" ${tbn#itest-} " if [[ " $TESTS " != *$tbn* ]]; then