summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-02-16 09:36:07 +1100
committerStefan Metzmacher <metze@samba.org>2013-03-04 08:18:07 +0100
commit0180a027cbc9725ae13023ddfdb8079f147864c5 (patch)
tree9f79fed505c8992fb5e513cd2cbd83bf5799f308 /testprogs
parentc692bb02b039ae8fef6ba968fd13b36ad7d62a72 (diff)
downloadsamba-0180a027cbc9725ae13023ddfdb8079f147864c5.tar.gz
subunit: Add a sh macro for skipping a test
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/subunit.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/testprogs/blackbox/subunit.sh b/testprogs/blackbox/subunit.sh
index 9b047a2d5df..3ed08826ee5 100755
--- a/testprogs/blackbox/subunit.sh
+++ b/testprogs/blackbox/subunit.sh
@@ -54,6 +54,16 @@ subunit_error_test () {
echo "]"
}
+subunit_skip_test () {
+ # emit the current protocol skip-marker for test $1, and emit stdin as
+ # the error text.
+ # we use stdin because the failure message can be arbitrarily long, and this
+ # makes it convenient to write in scripts (using <<END syntax.
+ echo "skip: $1 ["
+ cat -
+ echo "]"
+}
+
testit () {
name="$1"
shift