summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2017-10-07 14:12:37 +0200
committeranonym <anonym@riseup.net>2017-10-08 11:31:08 +0200
commitb8041dde5611e3ae4f6b32cc7ee42dd9f9427a18 (patch)
tree9aca143a191b0eaba742dbe69434747a170afcdd
parenta790f473d696ac7675b2d17dc69f0610dbc1b2eb (diff)
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