From f76bc9bf7f2b9378102d0d34b12987170b5ae3ef Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 9 Oct 2017 16:37:31 +0200 Subject: Don't fail hard if we were unable to suspend machine --- bbot/agent/machine.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bbot/agent/machine.cxx') diff --git a/bbot/agent/machine.cxx b/bbot/agent/machine.cxx index b309fdf..955ab77 100644 --- a/bbot/agent/machine.cxx +++ b/bbot/agent/machine.cxx @@ -172,7 +172,7 @@ namespace bbot forcedown (bool fail_hard) override; virtual void - suspend () override; + suspend (bool fail_hard) override; bool wait (size_t& seconds, bool fail_hard) override; @@ -376,7 +376,7 @@ namespace bbot } void kvm_machine:: - suspend () + suspend (bool fh) { try { @@ -384,7 +384,7 @@ namespace bbot } catch (const system_error& e) { - fail << "unable to communicate with qemu monitor: " << e; + fail (fh) << "unable to communicate with qemu monitor: " << e; } } -- cgit v1.1