Skip to content
Snippets Groups Projects
Commit 9b12c120 authored by Iustin Pop's avatar Iustin Pop
Browse files

Expand debug messages in gnt-debug test-jobqueue


It wasn't clear for which tests we were ignoring the errors.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 2cfbc784
No related branches found
No related tags found
No related merge requests found
# #
# #
# 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 # 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 # it under the terms of the GNU General Public License as published by
...@@ -192,7 +192,7 @@ def _TestJobDependency(opts): ...@@ -192,7 +192,7 @@ def _TestJobDependency(opts):
SubmitOpCode(opcodes.OpTestDelay(duration=0, depends=[(-1, None)]), cl=cl) SubmitOpCode(opcodes.OpTestDelay(duration=0, depends=[(-1, None)]), cl=cl)
except errors.GenericError, err: except errors.GenericError, err:
if opts.debug: if opts.debug:
ToStdout("Ignoring error: %s", err) ToStdout("Ignoring error for 'wrong dependencies' test: %s", err)
else: else:
raise errors.OpExecError("Submitting plain opcode with relative job ID" raise errors.OpExecError("Submitting plain opcode with relative job ID"
" did not fail as expected") " did not fail as expected")
...@@ -297,7 +297,7 @@ def _TestJobSubmission(opts): ...@@ -297,7 +297,7 @@ def _TestJobSubmission(opts):
cl.SubmitJob(ops) cl.SubmitJob(ops)
except errors.GenericError, err: except errors.GenericError, err:
if opts.debug: if opts.debug:
ToStdout("Ignoring error: %s", err) ToStdout("Ignoring error for 'wrong priority' test: %s", err)
else: else:
raise errors.OpExecError("Submitting opcode with priority %s did not" raise errors.OpExecError("Submitting opcode with priority %s did not"
" fail when it should (allowed are %s)" % " fail when it should (allowed are %s)" %
...@@ -511,7 +511,7 @@ def TestJobqueue(opts, _): ...@@ -511,7 +511,7 @@ def TestJobqueue(opts, _):
except errors.OpExecError, err: except errors.OpExecError, err:
if not fail: if not fail:
raise raise
ToStdout("Ignoring error: %s", err) ToStdout("Ignoring error for 'job fail' test: %s", err)
else: else:
if fail: if fail:
raise errors.OpExecError("Job didn't fail when it should") raise errors.OpExecError("Job didn't fail when it should")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment