summaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
Diffstat (limited to 'Test')
-rw-r--r--Test/runtests.zsh6
1 files changed, 5 insertions, 1 deletions
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++ ))