From 42636629a1c1f2cef09b31d412dc8ddd1e193b83 Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Thu, 7 Mar 2024 18:31:41 +0100 Subject: 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 --- t/01proc.t | 2 +- t/05-timed-process.t | 2 +- 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; -- cgit v1.2.3