about summary refs log tree commit diff
path: root/Test/A01grammar.ztst
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/A01grammar.ztst
parent2833299312dc3600849bd82ae7b93f5538cc10bb (diff)
downloadzsh-9152ff3b46a167e2ad7a1fb8a8cef313b45b456b.tar.gz
zsh-9152ff3b46a167e2ad7a1fb8a8cef313b45b456b.tar.xz
zsh-9152ff3b46a167e2ad7a1fb8a8cef313b45b456b.zip
35760: Add ZTST_skip to test system
Diffstat (limited to 'Test/A01grammar.ztst')
-rw-r--r--Test/A01grammar.ztst13
1 files changed, 13 insertions, 0 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst
index 8221735b6..59f87fa90 100644
--- a/Test/A01grammar.ztst
+++ b/Test/A01grammar.ztst
@@ -13,6 +13,19 @@
 #
 # Tests for `Simple Commands and Pipelines'
 #
+
+  # Test skipping early to ensure we run the remainder...
+  if [[ -n $ZTST_test_skip ]]; then
+    ZTST_skip="Test system verification for skipping"
+  else
+    print "This is standard output"
+    print "This is standard error" >&2
+    false
+  fi
+1:Test skipping if ZTST_test_skip is set
+>This is standard output
+?This is standard error
+
   echo foo | cat | sed 's/foo/bar/'
 0:Basic pipeline handling
 >bar