summaryrefslogtreecommitdiffstats
path: root/cucumber/features/step_definitions
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2017-03-08 12:47:41 +0100
committerHolger Levsen <holger@layer-acht.org>2017-03-20 15:56:46 +0100
commitc7a9bfe0d40e17aa76484d5e3c83995042345661 (patch)
treef274320f0259cea0e68f9d49eee745f047a69e47 /cucumber/features/step_definitions
parent5bf2b923f4dfc56a9e9686eb52ef610db3492728 (diff)
downloadjenkins.debian.net-c7a9bfe0d40e17aa76484d5e3c83995042345661.tar.xz
lvc: add a 'running ...' step for remote commands, and use it
this includes a new @bugtest scenario for testing the patch for #853855 Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'cucumber/features/step_definitions')
-rw-r--r--cucumber/features/step_definitions/common_steps.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb
index 6f47bb93..0cebc1a3 100644
--- a/cucumber/features/step_definitions/common_steps.rb
+++ b/cucumber/features/step_definitions/common_steps.rb
@@ -212,6 +212,11 @@ When /^I execute "([^"]*)"$/ do |cmd|
info_log($vm.execute(cmd))
end
+When /^running "([^"]*)" (.*)$/ do |cmd, outcome|
+ result = $vm.execute(cmd)
+ assert(result.success? == ('succeeds' == outcome),
+ "Attempting to run '#{cmd}' did not give the expected outcome of: #{outcome}\n" + result.to_s )
+end
Given /^I start Tails( from DVD)?( with network unplugged)?( and I login)?$/ do |dvd_boot, network_unplugged, do_login|
step "the computer is set to boot from the Tails DVD" if dvd_boot