[Box Backup-commit] COMMIT r2086 - box/trunk
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Fri, 1 Feb 2008 00:54:19 +0000 (UTC)
Author: chris
Date: 2008-02-01 00:54:18 +0000 (Fri, 01 Feb 2008)
New Revision: 2086
Modified:
box/trunk/runtest.pl.in
Log:
Add help text on test failures, thanks to Stuart Hickinbottom.
Modified: box/trunk/runtest.pl.in
===================================================================
--- box/trunk/runtest.pl.in 2008-01-31 23:57:14 UTC (rev 2085)
+++ box/trunk/runtest.pl.in 2008-02-01 00:54:18 UTC (rev 2086)
@@ -71,6 +71,26 @@
# 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