From 39453691ba3208dbd2e6ce1fd341d430b31dff55 Mon Sep 17 00:00:00 2001 From: Andrea Kao Date: Wed, 27 Jul 2016 12:10:46 -0700 Subject: [PATCH] tests: extend cmd_fail to all non-zero exit codes (#595) --- Library/Homebrew/test/test_integration_cmds.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 927c105520..40f68df6b8 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