aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.pl4
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";