Skip to content

Commit

Permalink
Added Redirect standard error to standard output when executing syste…
Browse files Browse the repository at this point in the history
…m commands
  • Loading branch information
Roger Leite committed Apr 19, 2010
1 parent 5c66ca5 commit d7d8663
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion features/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def create_fake_environment

#execute system command, redirecting output
def execute(command)
system("#{command} > #{OUTPUT}")
#2>&1 Redirect standard error to standard output
system("#{command} > #{OUTPUT} 2>&1")
end

#read output
Expand Down
1 change: 0 additions & 1 deletion features/export_action.feature
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Feature: Export installed gems
And I should see "gems/rubygems_snapshot-0.2.0.gem"
And I should see "gems.yml"

@wip
Scenario: using export with tar format and no cache gem
Given I run "rm tmp/fake_gems/cache/rake*"
When I run "gem snapshot export tmp/test.tar"
Expand Down

0 comments on commit d7d8663

Please sign in to comment.