File: fix_binary_path_in_test.patch

package info (click to toggle)
libbot-training-perl 0.07-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 144 kB
  • sloc: perl: 176; makefile: 11
file content (19 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: change binary path in autopkgtest
 Set /usr/bin/ in binary path if it has been run with autopkgtest, where we
 have just a installed version.
Forwarded: not-needed
Author: Lucas Kanashiro <kanashiro.duarte@gmail.com>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2018-12-16

--- a/t/00-compile.t
+++ b/t/00-compile.t
@@ -17,6 +17,8 @@
     'bin/bot-training'
 );
 
+@scripts = ('/usr/bin/bot-training') if $ENV{AUTOPKGTEST_TMP};
+
 # no fake home requested
 
 my @switches = (