From fcd3fba695c56d2d960154034d2b8a4bc7b03454 Mon Sep 17 00:00:00 2001 From: dana Date: Wed, 8 Jul 2026 19:05:05 -0500 Subject: unposted: runtests: colourise signal fail message mikael pointed out that this failure message wasn't colourised like the others and didn't use the same wording --- Test/runtests.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Test') 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++ )) -- cgit v1.3.1