Show command when remote execution fail
This commit is contained in:
@@ -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/
|
||||
|
Reference in New Issue
Block a user