From ff7a8b1c1a0dbcc6c6003d97c762d4258cb59a7e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 26 Mar 2013 12:45:41 -0500 Subject: mosquitto: improve test --- Library/Formula/mosquitto.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/mosquitto.rb b/Library/Formula/mosquitto.rb index 0bff74c62..a1ad1028b 100644 --- a/Library/Formula/mosquitto.rb +++ b/Library/Formula/mosquitto.rb @@ -23,8 +23,9 @@ class Mosquitto < Formula (var+'mosquitto').mkpath end - def test - system "#{sbin}/mosquitto -h > /dev/null ; [ $? -eq 3 ]" + test do + quiet_system "#{sbin}/mosquitto", "-h" + $?.exitstatus == 3 end def caveats; <<-EOD.undent -- cgit v1.2.3