diff --git a/Library/Homebrew/formula_assertions.rb b/Library/Homebrew/formula_assertions.rb index 845c5480d9..a82b06f813 100644 --- a/Library/Homebrew/formula_assertions.rb +++ b/Library/Homebrew/formula_assertions.rb @@ -6,6 +6,7 @@ module Homebrew # Returns the output of running cmd, and asserts the exit status def shell_output(cmd, result=0) + ohai cmd output = `#{cmd}` assert_equal result, $?.exitstatus output @@ -13,6 +14,7 @@ module Homebrew # Returns the output of running the cmd, with the optional input def pipe_output(cmd, input=nil) + ohai cmd IO.popen(cmd, "w+") do |pipe| pipe.write(input) unless input.nil? pipe.close_write