Unflatten features directory tree

This commit is contained in:
Thibault Jouan
2014-11-18 11:58:23 +00:00
parent 86a84bbe12
commit 2d3975d47f
36 changed files with 1 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
@sshd
Feature: `sh' task action
Scenario: forwards standard ouput
Given a recipe with:
"""
task :sh_action do
sh '\echo hello from remote'
end
"""
When I successfully execute the recipe on remote target
Then the output must contain exactly "hello from remote\n"
Scenario: forwards error ouput
Given a recipe with:
"""
task :sh_action do
sh '\echo error from remote >&2'
end
"""
When I successfully execute the recipe on remote target
Then the error output must contain exactly "error from remote\n"
Scenario: aborts on failed command execution
Given a recipe with:
"""
task :sh_action_aborting do
sh '\false'
sh '\echo after_fail'
end
"""
When I execute the recipe on remote target
Then the output must not contain "after_fail"
Scenario: prints command when execution fail
Given a recipe with:
"""
task :sh_action_command_error do
sh '\false'
end
"""
When I execute the recipe on remote target
Then the output must match /\A\w+Error:\s+\\false/