summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2017-10-07 14:15:33 +0200
committeranonym <anonym@riseup.net>2017-10-09 14:13:45 +0200
commitb82a1377eb1dc8bee96f97a313da52cab4a016e6 (patch)
treec991e8a3cd01e76c29b6e62754d15b0081d9faf1
parentc9560697662cae336f8aede0b4063c5d81b05af4 (diff)
Test suite: Handle case where $vm is undefined.
That will be the case if a scenario fails extremely early, even before the VM is started (so actually if the VM fails to start).
-rw-r--r--features/support/hooks.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/support/hooks.rb b/features/support/hooks.rb
index bffe722..4862dac 100644
--- a/features/support/hooks.rb
+++ b/features/support/hooks.rb
@@ -283,7 +283,7 @@ After('@product') do |scenario|
# well cause the remote shell to not respond any more, e.g. when
# we cause a system crash), so let's collect everything depending
# on the remote shell here:
- if $vm.remote_shell_is_up?
+ if $vm && $vm.remote_shell_is_up?
save_journal($config['TMPDIR'])
end
$failure_artifacts.sort!