aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAndrea Kao2016-07-27 12:10:46 -0700
committerMartin Afanasjew2016-07-27 21:10:46 +0200
commit39453691ba3208dbd2e6ce1fd341d430b31dff55 (patch)
tree1d96f9fee1a90efb2e9349b727043d81b5e94f37 /Library
parent9f6cb8ed040d37d9706ee2b26e2c0a414f9a4660 (diff)
downloadbrew-39453691ba3208dbd2e6ce1fd341d430b31dff55.tar.bz2
tests: extend cmd_fail to all non-zero exit codes (#595)
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_integration_cmds.rb4
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