Description: t/script.t: When running autopkgtests test the installed svnnotify script
Origin: vendor
Forwarded: not-needed
Author: Salvatore Bonaccorso <carnil@debian.org>
Reviewed-by: Salvatore Bonaccorso <carnil@debian.org>
Last-Update: 2016-04-29

--- a/t/script.t
+++ b/t/script.t
@@ -6,6 +6,12 @@ use File::Spec::Functions;
 print "1..1\n";
 # Silence "Syntax OK".
 close STDERR;
-my $ret = system $^X, '-cw', '-I' . catdir(curdir, qw(blib lib)),
+my $ret;
+if ( $ENV{'ADTTMP'} ) {
+    $ret = system $^X, '-cw', '/usr/bin/svnnotify';
+}
+else {
+    $ret = system $^X, '-cw', '-I' . catdir(curdir, qw(blib lib)),
   '-I' . catdir(curdir, qw(lib)), catfile(curdir, 'bin', 'svnnotify');
+}
 print +($ret ? 'not ' : ''), "ok 1\n"
