Flatten features directory tree

This commit is contained in:
Thibault Jouan
2014-05-29 14:20:02 +00:00
parent d4d1657a4a
commit bff6b85e8e
26 changed files with 0 additions and 0 deletions

View File

@@ -1,51 +0,0 @@
@sshd
Feature: `sh' task action
Scenario: executes command
Given a recipe with:
"""
target 'some_host.test'
task :some_task do
sh '\true'
end
"""
When I execute the recipe
Then the exit status must be 0
Scenario: forwards standard ouput
Given a recipe with:
"""
target 'some_host.test'
task :some_task do
sh '\echo hello from remote'
end
"""
When I successfully execute the recipe
Then the output must contain exactly "hello from remote\n"
Scenario: aborts on failed command execution
Given a recipe with:
"""
target 'some_host.test'
task :some_task do
sh '\false'
sh '\echo after_fail'
end
"""
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/