summaryrefslogtreecommitdiffstats
path: root/testprogs
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-07-10 09:25:57 +0200
committerStefan Metzmacher <metze@samba.org>2010-07-10 09:35:04 +0200
commit22dfb16d73667d7adbe28e85d880c44a5e9f9344 (patch)
tree3441333056271d1c738e1188a1622bd5d7e9967c /testprogs
parent80f9ad4074889bd5acec74316c427ec2b3963006 (diff)
downloadsamba-22dfb16d73667d7adbe28e85d880c44a5e9f9344.tar.gz
samba-22dfb16d73667d7adbe28e85d880c44a5e9f9344.tar.xz
samba-22dfb16d73667d7adbe28e85d880c44a5e9f9344.zip
testprogs/blackbox/subunit.sh: initialize failed to 0
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
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/subunit.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/testprogs/blackbox/subunit.sh b/testprogs/blackbox/subunit.sh
index e16aee76ca..990bee57a6 100755
--- a/testprogs/blackbox/subunit.sh
+++ b/testprogs/blackbox/subunit.sh
@@ -29,6 +29,9 @@ subunit_pass_test () {
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