Skip to content

Commit d959b4d

Browse files
committed
Fix test.sh test globbing
1 parent ea38545 commit d959b4d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

test.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44

5+
echo ">> Running ${0}..."
6+
57
# Check for requirements
68
for C in bats curl gomplate timeout; do
79
command -v ${C} >/dev/null 2>&1 || { echo "Error: Tests require ${C} to be installed."; exit 1; }
@@ -18,4 +20,10 @@ trap finish EXIT
1820

1921
# Run all bats tests
2022
pushd tests 1> /dev/null
21-
bats "${1:-*}".bats
23+
if [ -z "$1" ]; then
24+
for f in *.bats; do
25+
bats "$f"
26+
done
27+
else
28+
bats "$1".bats
29+
fi

0 commit comments

Comments
 (0)