Skip to content

Commit f6b834f

Browse files
committed
t: ensure SHELL_PATH is properly used
Signed-off-by: Felipe Contreras <[email protected]>
1 parent 7c20f47 commit f6b834f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Run Tests
2323
env:
2424
MSYS: winsymlinks:nativestrict
25-
run: make -j1 test
25+
run: make -j1 SHELL_PATH=sh.exe test
2626
test-macos:
2727
runs-on: macos-latest
2828
steps:

t/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ RM = rm -f
2222
PROVE = prove
2323
AGGREGATE_SCRIPT = aggregate-results.sh
2424

25+
export SHELL_PATH
26+
2527
T = $(sort $(wildcard *.t))
2628

2729
test: pre-clean

t/simple.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
exec "$(dirname "$0")"/../example/simple.t "$@"
3+
exec "${SHELL_PATH:-/bin/sh}" "$(dirname "$0")"/../example/simple.t "$@"

0 commit comments

Comments
 (0)