From 8629a5432e0d089b3b47df1381fe05a66c6ed981 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Sun, 19 Jul 2009 20:34:08 +0200 Subject: [PATCH] burnin: fix removal errors hiding real errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A long-standing bug in burnin makes errors during the removal phase (e.g. because an import has failed, or because the initial creation has failed) hide the original error. This patch suppresses removal errors if we are already in βhas_errβ mode, and otherwise it displays them normally. Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Guido Trotter <ultrotter@google.com> --- tools/burnin | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/burnin b/tools/burnin index d0ef87753..1ba5f7b48 100755 --- a/tools/burnin +++ b/tools/burnin @@ -784,7 +784,14 @@ class Burner(object): Log(self.GetFeedbackBuf()) Log("\n\n") if not self.opts.keep_instances: - self.BurnRemove() + try: + self.BurnRemove() + except Exception, err: + if has_err: # already detected errors, so errors in removal + # are quite expected + Log("Note: error detected during instance remove: %s" % str(err)) + else: # non-expected error + raise return 0 -- GitLab