testprogs/blackbox/subunit: add testok() for easier integration of s3 tests.
authorMichael Adam <obnox@samba.org>
Tue, 15 Feb 2011 15:03:58 +0000 (16:03 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 16 Feb 2011 11:56:40 +0000 (12:56 +0100)
testprogs/blackbox/subunit.sh

index b8e5b5b322858483dbeeb6cdeb7eb1db2776d99a..9b047a2d5dfa51f47b7d0efef3d452d26c0da0cd 100755 (executable)
@@ -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="."