Show command when remote execution fail

This commit is contained in:
Thibault Jouan
2014-05-25 15:51:33 +00:00
parent 8168e68a2d
commit 0db2d90b72
6 changed files with 61 additions and 19 deletions

View File

@@ -37,3 +37,15 @@ Feature: `sh' task action
"""
When I execute the recipe
Then the output must not contain "after_fail"
Scenario: prints command when execution fail
Given a recipe with:
"""
target 'some_host.test'
task :some_task do
sh '\false'
end
"""
When I execute the recipe
Then the output must match /\A\w+Error:\s+\\false/