Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

Commit

Permalink
Fixing the unit test failure
Browse files Browse the repository at this point in the history
Since these tests do not use any livery, explicit wait_for_ssh command
is required
  • Loading branch information
kohsuke committed Mar 29, 2013
1 parent 2edd265 commit 8827307
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions features/cli/scp.feature
Expand Up @@ -13,7 +13,8 @@ Feature: SCP a file into a named VM
end
"""
And I have a file named "hello.txt"
When I run `blimpy scp Gherkins hello.txt`
When I run `blimpy wait_for_ssh`
And I run `blimpy scp Gherkins hello.txt`
Then the exit status should be 1
And the output should contain:
"""
Expand All @@ -34,5 +35,6 @@ Feature: SCP a file into a named VM
"""
And I have a file named "hello.txt"
And I run `blimpy start`
When I run `blimpy scp "Cucumber Host" hello.txt`
When I run `blimpy wait_for_ssh`
And I run `blimpy scp "Cucumber Host" hello.txt`
Then the exit status should be 0
3 changes: 2 additions & 1 deletion features/cli/ssh.feature
Expand Up @@ -12,7 +12,8 @@ Feature: SSH into a named VM
end
end
"""
When I run `blimpy ssh Gherkins`
When I run `blimpy wait_for_ssh`
And I run `blimpy ssh Gherkins`
Then the exit status should be 1
And the output should contain:
"""
Expand Down
1 change: 1 addition & 0 deletions features/step_definitions/cli_steps.rb
Expand Up @@ -34,6 +34,7 @@

When /^I ssh into the machine$/ do
step %{I run `blimpy start`}
step %{I run `blimpy wait_for_ssh`}
step %{I run `blimpy ssh "Cucumber Host" -o StrictHostKeyChecking=no` interactively}
end

Expand Down

0 comments on commit 8827307

Please sign in to comment.