diff options
| author | dana <dana@dana.is> | 2026-07-08 19:05:05 -0500 |
|---|---|---|
| committer | dana <dana@dana.is> | 2026-07-08 19:06:18 -0500 |
| commit | fcd3fba695c56d2d960154034d2b8a4bc7b03454 (patch) | |
| tree | 3c01cbf1a1bf0e12b992b30cdf6579d12de995b4 | |
| parent | unposted: README, NEWS: mention various changes (diff) | |
| download | zsh-fcd3fba695c56d2d960154034d2b8a4bc7b03454.tar zsh-fcd3fba695c56d2d960154034d2b8a4bc7b03454.tar.gz zsh-fcd3fba695c56d2d960154034d2b8a4bc7b03454.tar.bz2 zsh-fcd3fba695c56d2d960154034d2b8a4bc7b03454.tar.lz zsh-fcd3fba695c56d2d960154034d2b8a4bc7b03454.tar.xz zsh-fcd3fba695c56d2d960154034d2b8a4bc7b03454.tar.zst zsh-fcd3fba695c56d2d960154034d2b8a4bc7b03454.zip | |
mikael pointed out that this failure message wasn't colourised like the
others and didn't use the same wording
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | Test/runtests.zsh | 6 |
2 files changed, 8 insertions, 1 deletions
@@ -1,5 +1,8 @@ 2026-07-08 dana <dana@dana.is> + * unposted: Test/runtests.zsh: runtests: colourise signal fail + message + * unposted: NEWS, README: mention various changes * unposted: Completion/Unix/Type/_urls: make parameter local diff --git a/Test/runtests.zsh b/Test/runtests.zsh index 9fe694a60..ea862d2b3 100644 --- a/Test/runtests.zsh +++ b/Test/runtests.zsh @@ -27,7 +27,11 @@ for file in "${(f)ZTST_testlist}"; do (( skipped++ )) elif (( $retval )); then (( failure++ )) - (( $retval > 128 )) && print -r - "$file: failed: SIG$signals[$retval - 127]." + (( $retval > 128 )) && { + [[ -n $ZTST_failcolour ]] && print -rnP "%F{$ZTST_failcolour}" + print -r - "$file: test failed: SIG$signals[$retval - 127]." + [[ -n $ZTST_failcolour ]] && print -rnP %f + } ffiles+=( $file ) else (( success++ )) |
