summaryrefslogtreecommitdiffstats
path: root/features/step_definitions/common_steps.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/step_definitions/common_steps.rb')
-rw-r--r--features/step_definitions/common_steps.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index 5b7a144..10a7f24 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -106,6 +106,9 @@ def post_snapshot_restore_hook
$vm.execute("rm -f /var/log/tor/log")
$vm.execute("systemctl --no-block restart tails-tor-has-bootstrapped.target")
$vm.host_to_guest_time_sync
+ if $config["Chutney"] && $config["Chutney"]["src_dir"]
+ ensure_chutney_is_running
+ end
$vm.spawn("restart-tor")
wait_until_tor_is_working
if $vm.file_content('/proc/cmdline').include?(' i2p')
@@ -290,6 +293,10 @@ Given /^the computer (re)?boots Tails$/ do |reboot|
@screen.wait('TailsGreeter.png', 30*60)
$vm.wait_until_remote_shell_is_up
activate_filesystem_shares
+
+ if $config["Chutney"] && $config["Chutney"]["src_dir"]
+ step 'Tails is using a simulated Tor network'
+ end
end
Given /^I log in to a new session(?: in )?(|German)$/ do |lang|