Changeset 2165 for box/trunk/test


Ignore:
Timestamp:
28/05/2008 10:41:32 (4 years ago)
Author:
chris
Message:

Add support to notifyscript to use a tag, useful for tests with
frequently-generated messages such as backup-start.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/test/bbackupd/testfiles/notifyscript.pl.in

    r1557 r2165  
    11#!@TARGET_PERL@ 
    22 
     3my $f = 'testfiles/notifyran.'.$ARGV[0].'.'; 
    34 
    4 my $f = 'testfiles/notifyran.'.$ARGV[0].'.'; 
     5if (-e 'testfiles/notifyscript.tag') 
     6{ 
     7        open FILE, '< testfiles/notifyscript.tag' or die $!; 
     8        my $tag = <FILE>; 
     9        chomp $tag; 
     10        $f .= "$tag."; 
     11        close FILE; 
     12} 
     13 
    514my $n = 1; 
    615 
Note: See TracChangeset for help on using the changeset viewer.