Skip to content

Commit 2efa53a

Browse files
committed
-p doesn't work in github actions runner...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
1 parent 4dcf75e commit 2efa53a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test/run.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,9 @@ done
8080

8181
# ---- Run BATS ---------------------------------------------------------------
8282

83-
"$BATS" -p test_suite.bats
83+
# Use pretty formatter when stdout is a TTY; fall back to TAP in CI / pipes
84+
if [ -t 1 ]; then
85+
"$BATS" --pretty test_suite.bats
86+
else
87+
"$BATS" --formatter tap test_suite.bats
88+
fi

0 commit comments

Comments
 (0)