diff options
| author | Jack Nagel | 2013-03-26 12:45:41 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-26 12:58:47 -0500 |
| commit | ff7a8b1c1a0dbcc6c6003d97c762d4258cb59a7e (patch) | |
| tree | 40eb14828cacb9e8cb15a2167aae6cadbccd1cf5 /Library/Formula | |
| parent | 53da5546552e446106de48a10659a2d8b5061d1c (diff) | |
| download | homebrew-ff7a8b1c1a0dbcc6c6003d97c762d4258cb59a7e.tar.bz2 | |
mosquitto: improve test
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mosquitto.rb | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
