summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgregor herrmann <gregoa@debian.org>2024-03-07 18:31:41 +0100
committergregor herrmann <gregoa@debian.org>2024-03-07 18:31:41 +0100
commit42636629a1c1f2cef09b31d412dc8ddd1e193b83 (patch)
tree3b65de1699a993a99ec88d7f3d95a995b11b0b9c
parent5df89cb866addae097dda4862463768a6ded3dd5 (diff)
add /usr/bin to "search path" for timed-process script.
Origin: vendor Forwarded: not-needed Last-Update: 2023-04-21 During build, bin/timed-process.PL is converted to bin/timed-process which is then used during tests. During autopkgtests, this conversions doesn't happen, and we want to test the installed script in /usr/bin anyway. Gbp-Pq: Name autopkgtest.patch
-rw-r--r--t/01proc.t2
-rw-r--r--t/05-timed-process.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/t/01proc.t b/t/01proc.t
index e4c9636..f70dcba 100644
--- a/t/01proc.t
+++ b/t/01proc.t
@@ -31,7 +31,7 @@ ok(1); # 1
# script takes a sleep time and an exit value. timed-process takes a
# sleep time and a command to run.
my $sleep_exit;
-foreach my $dir (qw(. ./bin ./t ../bin ../t Proc-Background/t)) {
+foreach my $dir (qw(. ./bin ./t ../bin ../t Proc-Background/t /usr/bin)) {
unless ($sleep_exit) {
my $s = "$dir/sleep_exit.pl";
$sleep_exit = $s if -r $s;
diff --git a/t/05-timed-process.t b/t/05-timed-process.t
index 795bc4f..f09482f 100644
--- a/t/05-timed-process.t
+++ b/t/05-timed-process.t
@@ -18,7 +18,7 @@ $lib or die "Cannot find lib directory.\n";
# sleep time and a command to run.
my $sleep_exit;
my $timed_process;
-foreach my $dir (qw(. ./bin ./t ../bin ../t Proc-Background/t)) {
+foreach my $dir (qw(. ./bin ./t ../bin ../t Proc-Background/t /usr/bin)) {
unless ($sleep_exit) {
my $s = "$dir/sleep_exit.pl";
$sleep_exit = $s if -r $s;