From 7c72ce9f48eced7b22773c49663fdda3c43a15e1 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 15 Feb 2011 16:03:58 +0100 Subject: testprogs/blackbox/subunit: add testok() for easier integration of s3 tests. --- testprogs/blackbox/subunit.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'testprogs') 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="." -- cgit