summary refs log tree commit diff
path: root/Test/ztst.zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-07-10 14:47:19 +0100
committerPeter Stephenson <pws@zsh.org>2015-07-10 14:47:19 +0100
commit9152ff3b46a167e2ad7a1fb8a8cef313b45b456b (patch)
tree719b3c74b5c0d405ef138dc3a6ccfb22327e0604 /Test/ztst.zsh
parent2833299312dc3600849bd82ae7b93f5538cc10bb (diff)
downloadzsh-9152ff3b46a167e2ad7a1fb8a8cef313b45b456b.tar.gz
zsh-9152ff3b46a167e2ad7a1fb8a8cef313b45b456b.tar.xz
zsh-9152ff3b46a167e2ad7a1fb8a8cef313b45b456b.zip
35760: Add ZTST_skip to test system
Diffstat (limited to 'Test/ztst.zsh')
-rwxr-xr-xTest/ztst.zsh11
1 files changed, 11 insertions, 0 deletions
diff --git a/Test/ztst.zsh b/Test/ztst.zsh
index 74111f6cc..ce89a83ce 100755
--- a/Test/ztst.zsh
+++ b/Test/ztst.zsh
@@ -343,6 +343,7 @@ ZTST_diff() {
 ZTST_test() {
   local last match mbegin mend found substlines
   local diff_out diff_err
+  local ZTST_skip
 
   while true; do
     rm -f $ZTST_in $ZTST_out $ZTST_err
@@ -427,6 +428,16 @@ $ZTST_curline"
 
       ZTST_execchunk <$ZTST_in >$ZTST_tout 2>$ZTST_terr
 
+      if [[ -n $ZTST_skip ]]; then
+	ZTST_verbose 0 "Test case skipped: $ZTST_skip"
+	ZTST_skip=
+	if [[ -n $last ]]; then
+	  break
+	else
+	  continue
+	fi
+      fi
+
       # First check we got the right status, if specified.
       if [[ $ZTST_xstatus != - && $ZTST_xstatus != $ZTST_status ]]; then
 	ZTST_testfailed "bad status $ZTST_status, expected $ZTST_xstatus from: