tests/installed: Fix TESTS= being empty
I broke this in 9b55aaea6f
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
This commit is contained in:
parent
2648c968c4
commit
d379f87405
|
|
@ -4,7 +4,7 @@ set -xeuo pipefail
|
||||||
|
|
||||||
dn=$(dirname $0)
|
dn=$(dirname $0)
|
||||||
for tn in ${dn}/itest-*.sh; do
|
for tn in ${dn}/itest-*.sh; do
|
||||||
if [ -n "${TESTS+ }" ]; then
|
if [ -n "${TESTS:-}" ]; then
|
||||||
tbn=$(basename "$tn" .sh)
|
tbn=$(basename "$tn" .sh)
|
||||||
tbn=" ${tbn#itest-} "
|
tbn=" ${tbn#itest-} "
|
||||||
if [[ " $TESTS " != *$tbn* ]]; then
|
if [[ " $TESTS " != *$tbn* ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue