aboutsummaryrefslogtreecommitdiff
path: root/bbot/agent/machine.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-10-09 16:37:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-10-09 16:37:31 +0200
commitf76bc9bf7f2b9378102d0d34b12987170b5ae3ef (patch)
tree20e09e59c1fc0c5317337409d3e81a9eba315dbf /bbot/agent/machine.cxx
parent355fb2bf20af05ccd885279db26f9ccce669dd13 (diff)
Don't fail hard if we were unable to suspend machine
Diffstat (limited to 'bbot/agent/machine.cxx')
-rw-r--r--bbot/agent/machine.cxx6
1 files changed, 3 insertions, 3 deletions
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;
}
}