diff options
author | Michael Adam <obnox@samba.org> | 2011-02-15 16:03:58 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-02-16 12:56:40 +0100 |
commit | 7c72ce9f48eced7b22773c49663fdda3c43a15e1 (patch) | |
tree | 1af7d4e429abc0d1e8d30fb30da2d4c6188fe7b2 /testprogs/blackbox | |
parent | fbfa5c62b8a539e9cf6e291faaa8d7c90c58a839 (diff) | |
download | samba-7c72ce9f48eced7b22773c49663fdda3c43a15e1.tar.gz samba-7c72ce9f48eced7b22773c49663fdda3c43a15e1.tar.bz2 samba-7c72ce9f48eced7b22773c49663fdda3c43a15e1.zip |
testprogs/blackbox/subunit: add testok() for easier integration of s3 tests.
Diffstat (limited to 'testprogs/blackbox')
-rwxr-xr-x | testprogs/blackbox/subunit.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testprogs/blackbox/subunit.sh b/testprogs/blackbox/subunit.sh index b8e5b5b322..9b047a2d5d 100755 --- a/testprogs/blackbox/subunit.sh +++ b/testprogs/blackbox/subunit.sh @@ -84,6 +84,15 @@ testit_expect_failure () { return $status } +testok () { + name=`basename $1` + shift + failed=$2 + shift + + exit $failed +} + # work out the top level source directory if [ -d source4 ]; then SRCDIR="." |