X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/f4bb1d53d09d28cd6314a9e244d7a31d32e4bbdb..26ab1da32241a0be1cf08ce866b00429fc35d06d:/test/runtest diff --git a/test/runtest b/test/runtest index 6c98a702c..0a2ede9ef 100755 --- a/test/runtest +++ b/test/runtest @@ -2207,6 +2207,15 @@ return $yield; # Ran command and waited autoflush STDOUT 1; print "Exim tester $testversion\n"; +# extend the PATH with .../sbin +# we map all (.../bin) to (.../sbin:.../bin) +$ENV{PATH} = do { + my %seen = map { $_, 1 } split /:/, $ENV{PATH}; + join ':' => map { m{(.*)/bin$} + ? ( $seen{"$1/sbin"} ? () : ("$1/sbin"), $_) + : ($_) } + split /:/, $ENV{PATH}; +}; ################################################## # Some tests check created file modes #