diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runtests.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 86687eeb1..e4f2e9d58 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -373,8 +373,8 @@ sub startnew { # sub checkcmd { my ($cmd)=@_; - my @paths=("/usr/sbin", "/usr/local/sbin", "/sbin", "/usr/bin", - "/usr/local/bin", split(":", $ENV{'PATH'})); + my @paths=(split(":", $ENV{'PATH'}), "/usr/sbin", "/usr/local/sbin", + "/sbin", "/usr/bin", "/usr/local/bin", ); for(@paths) { if( -x "$_/$cmd") { return "$_/$cmd"; |