File: autopkgtest.patch

package info (click to toggle)
ccdiff 0.32-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 216 kB
  • sloc: perl: 565; makefile: 11
file content (18 lines) | stat: -rw-r--r-- 693 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: set path to script according to autopkgtest environment
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2018-10-15

--- a/t/01-no-color.t
+++ b/t/01-no-color.t
@@ -21,7 +21,8 @@
     $exp =~ s/STAMP:2/$stamp{$f2}/g;
     #diag "Description: $dsc";
     #diag "Options:     $opt";
-    my @cmd = ($^X, "ccdiff", "--utf-8", "--no-color", "Files/$f1", "Files/$f2");
+    my $path = ( $ENV{AUTOPKGTEST_TMP} ? '/usr/bin' : '.' );
+    my @cmd = ($^X, "$path/ccdiff", "--utf-8", "--no-color", "Files/$f1", "Files/$f2");
     $opt and push @cmd, split m/ / => $opt;
     #diag "@cmd";
     my ($out, $err, $exit) = capture { system @cmd; };