mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
'make test': Fix breakage introduced by 4d3da30f8b:
test failure would not be reflected by the exit code of 'make'. Setting a shell parameter in the left-hand side of a pipe is not visible to commands after the pipe, because the left-hand side forks. (That's true both in 'sh' used by 'make' and in 'zsh' that runs tests/test-highlighting.zsh, at least on my system.) Therefore, move the colorizing hook to where it doesn't interfere with setting the $something_failed (in tests/test-highlighting.zsh) and $result (in Makefile) parameters.
This commit is contained in:
parent
4513eaea71
commit
6fe07c0961
3 changed files with 4 additions and 3 deletions
2
Makefile
2
Makefile
|
|
@ -26,7 +26,7 @@ test:
|
|||
$(ZSH) -f tests/test-highlighting.zsh "$${test##*/}"; \
|
||||
: $$(( result |= $$? )); \
|
||||
fi \
|
||||
done | $(ZSH) -f tests/tap-colorizer.zsh; \
|
||||
done; \
|
||||
exit $$result
|
||||
|
||||
perf:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue