about summary refs log tree commit diff
path: root/Test/runtests.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'Test/runtests.zsh')
-rw-r--r--Test/runtests.zsh10
1 files changed, 7 insertions, 3 deletions
diff --git a/Test/runtests.zsh b/Test/runtests.zsh
index 1d4321576..562234d91 100644
--- a/Test/runtests.zsh
+++ b/Test/runtests.zsh
@@ -7,10 +7,13 @@ emulate zsh
 # protect from catastrophic failure of an individual test.
 # We could probably do that with subshells instead.
 
-integer success failure
+integer success failure skipped retval
 for file in "${(f)ZTST_testlist}"; do
   $ZTST_exe +Z -f $ZTST_srcdir/ztst.zsh $file
-  if (( $? )); then
+  retval=$?
+  if (( $retval == 2 )); then
+    (( skipped++ ))
+  elif (( $retval )); then
     (( failure++ ))
   else
     (( success++ ))
@@ -18,6 +21,7 @@ for file in "${(f)ZTST_testlist}"; do
 done
 print "**************************************
 $success successful test script${${success:#1}:+s}, \
-$failure failure${${failure:#1}:+s}
+$failure failure${${failure:#1}:+s}, \
+$skipped skipped
 **************************************"
 return $(( failure ? 1 : 0 ))