diff options
| author | Andrea Kao | 2016-07-27 12:10:46 -0700 |
|---|---|---|
| committer | Martin Afanasjew | 2016-07-27 21:10:46 +0200 |
| commit | 39453691ba3208dbd2e6ce1fd341d430b31dff55 (patch) | |
| tree | 1d96f9fee1a90efb2e9349b727043d81b5e94f37 | |
| parent | 9f6cb8ed040d37d9706ee2b26e2c0a414f9a4660 (diff) | |
| download | brew-39453691ba3208dbd2e6ce1fd341d430b31dff55.tar.bz2 | |
tests: extend cmd_fail to all non-zero exit codes (#595)
| -rw-r--r-- | Library/Homebrew/test/test_integration_cmds.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 927c10552..40f68df6b 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -102,8 +102,8 @@ class IntegrationCommandTests < Homebrew::TestCase def cmd_fail(*args) output = cmd_output(*args) status = $?.exitstatus - $stderr.puts "\n#{output}" if status != 1 - assert_equal 1, status + $stderr.puts "\n#{output}" if status == 0 + refute_equal 0, status output end |
