Explorar el Código

test harness: Print the test name when $skip_test is set.

pull/700/head
Daniel Shahaf hace 4 años
padre
commit
c4bb260a30
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. +5
    -1
      tests/test-highlighting.zsh

+ 5
- 1
tests/test-highlighting.zsh Ver fichero

@ -131,7 +131,11 @@ run_test_internal() {
# WARNING: The remainder of this anonymous function will run with the test's options in effect
(( $#skip_test )) && { print -r -- "1..0 # SKIP $skip_test"; return ${RETURN:=0}; }
(( $#skip_test )) && {
print -r -- "1..0 # SKIP $skip_test"
print -r -- "## ${ARG:t:r}"
return ${RETURN:=0}
}
# Check the data declares $PREBUFFER or $BUFFER.
[[ -z $PREBUFFER && -z $BUFFER ]] && { echo >&2 "Bail out! On ${(qq)1}: Either 'PREBUFFER' or 'BUFFER' must be declared and non-blank"; return ${RETURN:=1}; }

Cargando…
Cancelar
Guardar