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-10 15:35:11 +0200
commit96145726e0fc4060b4ebc86a6a06786aad696e85 (patch)
tree26708976404a66c419f8fc3e4dcee274fbefe46a /bbot/agent/machine.cxx
parentc63815eb8a8e60ee615182348106a7be1b5e2f18 (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 0d1bda1..5fb283e 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;
@@ -377,7 +377,7 @@ namespace bbot
}
void kvm_machine::
- suspend ()
+ suspend (bool fh)
{
try
{
@@ -385,7 +385,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;
}
}