[Box Backup-commit] COMMIT r2165 - box/trunk/test/bbackupd/testfiles
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Wed May 28 10:41:32 BST 2008
Author: chris
Date: 2008-05-28 10:41:32 +0100 (Wed, 28 May 2008)
New Revision: 2165
Modified:
box/trunk/test/bbackupd/testfiles/notifyscript.pl.in
Log:
Add support to notifyscript to use a tag, useful for tests with
frequently-generated messages such as backup-start.
Modified: box/trunk/test/bbackupd/testfiles/notifyscript.pl.in
===================================================================
--- box/trunk/test/bbackupd/testfiles/notifyscript.pl.in 2008-05-28 09:38:12 UTC (rev 2164)
+++ box/trunk/test/bbackupd/testfiles/notifyscript.pl.in 2008-05-28 09:41:32 UTC (rev 2165)
@@ -1,7 +1,16 @@
#!@TARGET_PERL@
+my $f = 'testfiles/notifyran.'.$ARGV[0].'.';
-my $f = 'testfiles/notifyran.'.$ARGV[0].'.';
+if (-e 'testfiles/notifyscript.tag')
+{
+ open FILE, '< testfiles/notifyscript.tag' or die $!;
+ my $tag = <FILE>;
+ chomp $tag;
+ $f .= "$tag.";
+ close FILE;
+}
+
my $n = 1;
while(-e $f.$n)
More information about the Boxbackup-commit
mailing list