diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-02-16 09:36:07 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-03-04 08:18:07 +0100 |
commit | 0180a027cbc9725ae13023ddfdb8079f147864c5 (patch) | |
tree | 9f79fed505c8992fb5e513cd2cbd83bf5799f308 | |
parent | c692bb02b039ae8fef6ba968fd13b36ad7d62a72 (diff) | |
download | samba-0180a027cbc9725ae13023ddfdb8079f147864c5.tar.gz samba-0180a027cbc9725ae13023ddfdb8079f147864c5.tar.bz2 samba-0180a027cbc9725ae13023ddfdb8079f147864c5.zip |
subunit: Add a sh macro for skipping a test
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rwxr-xr-x | testprogs/blackbox/subunit.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testprogs/blackbox/subunit.sh b/testprogs/blackbox/subunit.sh index 9b047a2d5d..3ed08826ee 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 |