From: Michael Adam Date: Tue, 15 Feb 2011 15:03:58 +0000 (+0100) Subject: testprogs/blackbox/subunit: add testok() for easier integration of s3 tests. X-Git-Tag: tevent-0.9.11~598 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c72ce9f48eced7b22773c49663fdda3c43a15e1;p=thirdparty%2Fsamba.git testprogs/blackbox/subunit: add testok() for easier integration of s3 tests. --- diff --git a/testprogs/blackbox/subunit.sh b/testprogs/blackbox/subunit.sh index b8e5b5b3228..9b047a2d5df 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="."