Skip to content

Commit 7e98b21

Browse files
committed
tests: Make sure PATH is set for 'env -i'
/bin/ and /usr/bin/ are not searched by default on all platforms, e.g. on cygwin: $ env -i zsh env: ‘zsh’: No such file or directory
1 parent c14fcad commit 7e98b21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test:
4141
for test in highlighters/*; do \
4242
if [ -d $$test/test-data ]; then \
4343
echo "Running test $${test##*/}"; \
44-
env -i QUIET=$$QUIET $${TERM:+"TERM=$$TERM"} $(ZSH) -f tests/test-highlighting.zsh "$${test##*/}"; \
44+
env -i QUIET=$$QUIET $${TERM:+"TERM=$$TERM"} PATH="$$PATH" $(ZSH) -f tests/test-highlighting.zsh "$${test##*/}"; \
4545
: $$(( result |= $$? )); \
4646
fi \
4747
done; \

0 commit comments

Comments
 (0)