[Box Backup-dev] COMMIT r644 - box/chris/general/test/bbackupd/testfiles

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Wed Jul 19 01:46:16 BST 2006


Author: chris
Date: 2006-07-19 00:46:13 +0000 (Wed, 19 Jul 2006)
New Revision: 644

Modified:
   box/chris/general/test/bbackupd/testfiles/extcheck1.pl
Log:
* extcheck1.pl
- More detailed debugging messages, useful when tests fail


Modified: box/chris/general/test/bbackupd/testfiles/extcheck1.pl
===================================================================
--- box/chris/general/test/bbackupd/testfiles/extcheck1.pl	2006-07-10 20:54:27 UTC (rev 643)
+++ box/chris/general/test/bbackupd/testfiles/extcheck1.pl	2006-07-19 00:46:13 UTC (rev 644)
@@ -15,14 +15,23 @@
 	next unless m/\S/;
 	if(m/continousupdate/)
 	{
-		$ret = 2 unless m/exists/;
+		unless (/exists/)
+		{
+			print "FAIL: continousupdate line does not match\n";
+			$ret = 2;
+		}
 		$seen = 1;
 	}
 	else
 	{
-		$ret = 2 unless m/\AWARNING/ || m/\ADifferences/ || /might be reason/ || /probably due to file mod/;
+		unless (/\AWARNING/ or /\ADifferences/ or /might be reason/
+			or /probably due to file mod/)
+		{
+			print "FAIL: Summary line does not match\n";
+			$ret = 2;
+		}
 	}
-	print;
+	print "READ: $_";
 }
 
 close IN;




More information about the Boxbackup-dev mailing list