Skip to content

Commit c4bb260

Browse files
committed
test harness: Print the test name when $skip_test is set.
1 parent 9bdeb4a commit c4bb260

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test-highlighting.zsh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ run_test_internal() {
131131

132132
# WARNING: The remainder of this anonymous function will run with the test's options in effect
133133

134-
(( $#skip_test )) && { print -r -- "1..0 # SKIP $skip_test"; return ${RETURN:=0}; }
134+
(( $#skip_test )) && {
135+
print -r -- "1..0 # SKIP $skip_test"
136+
print -r -- "## ${ARG:t:r}"
137+
return ${RETURN:=0}
138+
}
135139

136140
# Check the data declares $PREBUFFER or $BUFFER.
137141
[[ -z $PREBUFFER && -z $BUFFER ]] && { echo >&2 "Bail out! On ${(qq)1}: Either 'PREBUFFER' or 'BUFFER' must be declared and non-blank"; return ${RETURN:=1}; }

0 commit comments

Comments
 (0)