Skip to content

Commit c150736

Browse files
authored
Merge pull request #166 from mbland/msys2-fix
Fix `lib/bats/assertion-test-helpers` tests failing under MSYS2
2 parents 5adbe5e + 3f0d2a8 commit c150736

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/assertion-test-helpers.bats

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ create_failing_test_stub() {
3131
if [[ ! -d "$BATS_TMPDIR/bin" ]]; then
3232
mkdir -p "$BATS_TMPDIR/bin"
3333
fi
34-
printf '%s\n' 'printf "ARG: \"%s\"\n" "$@"' 'exit 1' >"$cmd_path"
34+
printf '%s\n' '#! /usr/bin/env bash' \
35+
'printf "ARG: \"%s\"\n" "$@"' 'exit 1' >"$cmd_path"
3536
chmod 755 "$cmd_path"
3637
PATH="$BATS_TMPDIR/bin:$PATH"
3738
hash "$cmd_name"

0 commit comments

Comments
 (0)