diff options
author | Dmitry Bogatov <KAction@debian.org> | 2019-05-28 18:48:36 +0000 |
---|---|---|
committer | Dmitry Bogatov <KAction@debian.org> | 2019-05-28 18:48:36 +0000 |
commit | 8eddb040f95b7e6a2ebb4700c4518e76b7c5b294 (patch) | |
tree | 54590a5f6f3839cb788a8fa6382f910e0decdbe0 /T.pm | |
parent | 9896a453b092edfc871450389569315ef72fd767 (diff) |
Make it possible to reuse t/*.t for autopkgtest
During build (target "check"), PATH and DH_AUTOSCRIPTDIR are set in a
way, that tests use dh_runit(1) and maintainer script snippets from
current directory.
Target "autopkgtest" uses dh_runit, globally installed in system.
Diffstat (limited to 'T.pm')
-rw-r--r-- | T.pm | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -10,8 +10,6 @@ our @ISA = qw(Exporter); | |||
10 | our @EXPORT = qw(system_ok); | 10 | our @EXPORT = qw(system_ok); |
11 | 11 | ||
12 | my $root = Cwd::cwd; | 12 | my $root = Cwd::cwd; |
13 | $ENV{PATH} = "$root:$ENV{PATH}"; | ||
14 | $ENV{DH_AUTOSCRIPTDIR} = $root; | ||
15 | 13 | ||
16 | die '$0 does not match expected format' | 14 | die '$0 does not match expected format' |
17 | unless ($0 =~ m#t/([0-9]+)\.t#); | 15 | unless ($0 =~ m#t/([0-9]+)\.t#); |