testprogs/blackbox/subunit.sh: initialize failed to 0
authorStefan Metzmacher <metze@samba.org>
Sat, 10 Jul 2010 07:25:57 +0000 (09:25 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 10 Jul 2010 07:35:04 +0000 (09:35 +0200)
This is a short-term workarround for broken scripts,
which use "exit $failed", without initializing failed.

We need a discussion on the mailing list how to handle this
in a nicer way.

This should fix some random failures in the blackbox tests.

metze

testprogs/blackbox/subunit.sh

index e16aee76caa7aaa21f3980768485a2f22985348c..990bee57a6290590ee2f3b1e7c503b9e15be38ab 100755 (executable)
@@ -29,6 +29,9 @@ subunit_pass_test () {
   echo "success: $1"
 }
 
   echo "success: $1"
 }
 
+# This is just a hack as we have some broken scripts
+# which use "exit $failed", without initializing failed.
+failed=0
 
 subunit_fail_test () {
   # emit the current protocol fail-marker for test $1, and emit stdin as
 
 subunit_fail_test () {
   # emit the current protocol fail-marker for test $1, and emit stdin as