summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2017-10-07 14:12:37 +0200
committeranonym <anonym@riseup.net>2017-10-09 14:13:43 +0200
commitc9560697662cae336f8aede0b4063c5d81b05af4 (patch)
tree17a0680fab5b72e7be5b000ec11e38e83fe4c24e
parent7eec8563807ebcf8d65f30b20f9b02f93e26ed70 (diff)
Test suite: Rescue exception.
If thrown it will happen in the "after each scenario" hook, breaking the rest of it.
-rw-r--r--features/support/hooks.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/features/support/hooks.rb b/features/support/hooks.rb
index 3a22844..bffe722 100644
--- a/features/support/hooks.rb
+++ b/features/support/hooks.rb
@@ -138,6 +138,9 @@ def save_journal(path)
file.write($vm.file_content('/tmp/systemd.journal'))
}
save_failure_artifact("Systemd journal", "#{path}/systemd.journal")
+rescue Exception => e
+ info_log("Exception thrown while trying to save the journal: " +
+ "#{e.class.name}: #{e}")
end
# Due to Tails' Tor enforcement, we only allow contacting hosts that