From 88d2e949fb685239c3caa746574b009bbfbe8ff2 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 14 Nov 2012 08:38:39 +0000 Subject: Use the system wide one if we can. --- lib/custodian/protocol-tests/ping.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/custodian/protocol-tests/ping.rb b/lib/custodian/protocol-tests/ping.rb index fd5a4ef..7f1ffbd 100755 --- a/lib/custodian/protocol-tests/ping.rb +++ b/lib/custodian/protocol-tests/ping.rb @@ -57,6 +57,10 @@ class PINGTest binary = "../../bin/multi-ping" if ( File.exists?( "../../bin/multi-ping" ) ) binary = "../../../bin/multi-ping" if ( File.exists?( "../../../bin/multi-ping" ) ) binary = "../../../../bin/multi-ping" if ( File.exists?( "../../../../bin/multi-ping" ) ) + # + # System-wide. + # + binary = "/usr/bin/multi-ping" if ( File.exists?( "/usr/bin/multi-ping" ) ) if ( binary.nil? ) @error = "Failed to find 'multi-ping'" -- cgit v1.2.1