summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-02-01 00:54:18 +0000
committerChris Wilson <chris+github@qwirx.com>2008-02-01 00:54:18 +0000
commit09d42e390ae663dc33a028eb3589c3513b8673ea (patch)
tree938cf25375168238ca714d12fa26b116beb45a8d
parentcf1eb0bed54d859b647cafae613e25022a3928d0 (diff)
Add help text on test failures, thanks to Stuart Hickinbottom.
-rwxr-xr-xruntest.pl.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/runtest.pl.in b/runtest.pl.in
index 0d4381a6..b61be455 100755
--- a/runtest.pl.in
+++ b/runtest.pl.in
@@ -71,6 +71,26 @@ else
# report results
print "--------\n",join("\n",@results),"\n";
+if ($exit_code != 0)
+{
+ print <<__E;
+
+One or more tests have failed. Please check the following common causes:
+
+* Check that no instances of bbstored or bbackupd are already running
+ on this machine.
+* Make sure there isn't a firewall blocking incoming or outgoing connections
+ on port 2201.
+* Check that there is sufficient space in the filesystem that the tests
+ are being run from (at least 1 GB free).
+* The backupdiff test fails if it takes too long, so it's sensitive to
+ the speed of the host and your connection to it.
+
+After checking all the above, if you still have problems please contact
+us on the mailing list, boxbackup@fluffy.co.uk. Thanks!
+__E
+}
+
exit $exit_code;
sub runtest