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, 9 Mar 2011 11:53:57 +0000 (12:53 +0100)
testprogs/blackbox/subunit.sh

index 990bee57a6290590ee2f3b1e7c503b9e15be38ab..e089793c2060cedd5badc1aca6e260921c446933 100755 (executable)
@@ -83,3 +83,13 @@ testit_expect_failure () {
        fi
        return $status
 }
+
+testok () {
+       name=`basename $1`
+       shift
+       failed=$2
+       shift
+
+       exit $failed
+}
+