From 9b12c1205cdde2c64ecedbbcd64883eff26b3b2e Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Thu, 2 Aug 2012 12:50:23 +0200 Subject: [PATCH] Expand debug messages in gnt-debug test-jobqueue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It wasn't clear for which tests we were ignoring the errors. Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: RenΓ© Nussbaumer <rn@google.com> --- lib/client/gnt_debug.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/client/gnt_debug.py b/lib/client/gnt_debug.py index 228733b5d..ee458dabe 100644 --- a/lib/client/gnt_debug.py +++ b/lib/client/gnt_debug.py @@ -1,7 +1,7 @@ # # -# Copyright (C) 2006, 2007, 2010, 2011 Google Inc. +# Copyright (C) 2006, 2007, 2010, 2011, 2012 Google Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -192,7 +192,7 @@ def _TestJobDependency(opts): SubmitOpCode(opcodes.OpTestDelay(duration=0, depends=[(-1, None)]), cl=cl) except errors.GenericError, err: if opts.debug: - ToStdout("Ignoring error: %s", err) + ToStdout("Ignoring error for 'wrong dependencies' test: %s", err) else: raise errors.OpExecError("Submitting plain opcode with relative job ID" " did not fail as expected") @@ -297,7 +297,7 @@ def _TestJobSubmission(opts): cl.SubmitJob(ops) except errors.GenericError, err: if opts.debug: - ToStdout("Ignoring error: %s", err) + ToStdout("Ignoring error for 'wrong priority' test: %s", err) else: raise errors.OpExecError("Submitting opcode with priority %s did not" " fail when it should (allowed are %s)" % @@ -511,7 +511,7 @@ def TestJobqueue(opts, _): except errors.OpExecError, err: if not fail: raise - ToStdout("Ignoring error: %s", err) + ToStdout("Ignoring error for 'job fail' test: %s", err) else: if fail: raise errors.OpExecError("Job didn't fail when it should") -- GitLab