From 9152ff3b46a167e2ad7a1fb8a8cef313b45b456b Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 10 Jul 2015 14:47:19 +0100 Subject: 35760: Add ZTST_skip to test system --- Test/A01grammar.ztst | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Test/A01grammar.ztst') 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 -- cgit 1.4.1