[Box Backup] Announcing 0.11 Release Candidate 2
Stuart Hickinbottom
boxbackup@fluffy.co.uk
Fri, 01 Feb 2008 00:06:04 +0000
This is a multi-part message in MIME format.
--------------090406040500070209050304
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
OK. Attached is a small patch to add a little helpful output if the
tests fail.
Stuart
Chris Wilson wrote:
> Hi Stuart,
>
> On Thu, 31 Jan 2008, Stuart Hickinbottom wrote:
>
>
>> It's easy to forget - I've done it myself more than once. I wonder
>> whether, if any tests fail, we could get a reminder printed to check the
>> common things:
>>
>> 1. Check that no other instances of bbstored or bbackupd are running
>> on this machine.
>> 2. That there isn't a firewall blocking the incoming or outgoing
>> ports that are used.
>> 3. That there is sufficient space in the filesystem the tests are
>> being run from.
>>
>> I think such a reminder would help avoid the common questions here.
>>
>> Chris, if it would help I could knock up a patch for that, and add a
>> couple of notes to the build/test section in the wiki.
>>
>
> Please go ahead, thanks!
>
> Chris.
>
--------------090406040500070209050304
Content-Type: text/plain;
name="failure-text.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="failure-text.patch"
--- runtest.pl.in.orig 2008-01-31 23:18:58.000000000 +0000
+++ runtest.pl.in 2008-01-31 23:17:58.000000000 +0000
@@ -71,6 +71,23 @@
# report results
print "--------\n",join("\n",@results),"\n";
+if ($exit_code != 0)
+{
+ print <<__E;
+
+One or more tests have failed. Common things to check that may cause tests
+to incorrectly fail are:
+
+* Check that no instances of bbstored or bbackupd are already running
+ on this machine.
+* Make sure there isn't a firewall blocking the incoming or outgoing
+ ports that are used by bbstored and bbackupd.
+* Check that there is sufficient space in the filesystem that the tests
+ are being run from.
+
+__E
+}
+
exit $exit_code;
sub runtest
--------------090406040500070209050304--