Revision 9b12c120 lib/client/gnt_debug.py
b/lib/client/gnt_debug.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2006, 2007, 2010, 2011 Google Inc. |
|
4 |
# Copyright (C) 2006, 2007, 2010, 2011, 2012 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
192 | 192 |
SubmitOpCode(opcodes.OpTestDelay(duration=0, depends=[(-1, None)]), cl=cl) |
193 | 193 |
except errors.GenericError, err: |
194 | 194 |
if opts.debug: |
195 |
ToStdout("Ignoring error: %s", err) |
|
195 |
ToStdout("Ignoring error for 'wrong dependencies' test: %s", err)
|
|
196 | 196 |
else: |
197 | 197 |
raise errors.OpExecError("Submitting plain opcode with relative job ID" |
198 | 198 |
" did not fail as expected") |
... | ... | |
297 | 297 |
cl.SubmitJob(ops) |
298 | 298 |
except errors.GenericError, err: |
299 | 299 |
if opts.debug: |
300 |
ToStdout("Ignoring error: %s", err) |
|
300 |
ToStdout("Ignoring error for 'wrong priority' test: %s", err)
|
|
301 | 301 |
else: |
302 | 302 |
raise errors.OpExecError("Submitting opcode with priority %s did not" |
303 | 303 |
" fail when it should (allowed are %s)" % |
... | ... | |
511 | 511 |
except errors.OpExecError, err: |
512 | 512 |
if not fail: |
513 | 513 |
raise |
514 |
ToStdout("Ignoring error: %s", err) |
|
514 |
ToStdout("Ignoring error for 'job fail' test: %s", err)
|
|
515 | 515 |
else: |
516 | 516 |
if fail: |
517 | 517 |
raise errors.OpExecError("Job didn't fail when it should") |
Also available in: Unified diff