diff options
| author | Adam Vandenberg | 2014-07-29 21:59:49 -0700 | 
|---|---|---|
| committer | Adam Vandenberg | 2014-08-01 07:58:09 -0700 | 
| commit | c043a93bdf5bf4624f0b6f7f369bba0377900150 (patch) | |
| tree | a4e2d482943992b96afd61279d1006d8e0c65a1d /Library/Homebrew/formula_assertions.rb | |
| parent | c003e805bea98f6d0be62c0938ccad4f4a7e4ce0 (diff) | |
| download | brew-c043a93bdf5bf4624f0b6f7f369bba0377900150.tar.bz2 | |
show cmd being executed
Diffstat (limited to 'Library/Homebrew/formula_assertions.rb')
| -rw-r--r-- | Library/Homebrew/formula_assertions.rb | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/Library/Homebrew/formula_assertions.rb b/Library/Homebrew/formula_assertions.rb index 845c5480d..a82b06f81 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 | 
