Revision b469eb4d lib/client/gnt_debug.py

b/lib/client/gnt_debug.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2006, 2007, 2010 Google Inc.
4
# Copyright (C) 2006, 2007, 2010, 2011 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
......
350 350
    if mode == TM_PARTFAIL:
351 351
      ToStdout("Testing partial job failure")
352 352
      ops = [
353
        opcodes.OpTestJobqueue(notify_waitlock=True, notify_exec=True,
354
                               log_messages=test_messages, fail=False),
355
        opcodes.OpTestJobqueue(notify_waitlock=True, notify_exec=True,
356
                               log_messages=test_messages, fail=False),
357
        opcodes.OpTestJobqueue(notify_waitlock=True, notify_exec=True,
358
                               log_messages=test_messages, fail=True),
359
        opcodes.OpTestJobqueue(notify_waitlock=True, notify_exec=True,
360
                               log_messages=test_messages, fail=False),
353
        opcodes.OpTestJqueue(notify_waitlock=True, notify_exec=True,
354
                             log_messages=test_messages, fail=False),
355
        opcodes.OpTestJqueue(notify_waitlock=True, notify_exec=True,
356
                             log_messages=test_messages, fail=False),
357
        opcodes.OpTestJqueue(notify_waitlock=True, notify_exec=True,
358
                             log_messages=test_messages, fail=True),
359
        opcodes.OpTestJqueue(notify_waitlock=True, notify_exec=True,
360
                             log_messages=test_messages, fail=False),
361 361
        ]
362 362
      expect_messages = 3 * [test_messages]
363 363
      expect_opstatus = [
......
370 370
    elif mode == TM_MULTISUCCESS:
371 371
      ToStdout("Testing multiple successful opcodes")
372 372
      ops = [
373
        opcodes.OpTestJobqueue(notify_waitlock=True, notify_exec=True,
374
                               log_messages=test_messages, fail=False),
375
        opcodes.OpTestJobqueue(notify_waitlock=True, notify_exec=True,
376
                               log_messages=test_messages, fail=False),
373
        opcodes.OpTestJqueue(notify_waitlock=True, notify_exec=True,
374
                             log_messages=test_messages, fail=False),
375
        opcodes.OpTestJqueue(notify_waitlock=True, notify_exec=True,
376
                             log_messages=test_messages, fail=False),
377 377
        ]
378 378
      expect_messages = 2 * [test_messages]
379 379
      expect_opstatus = [
......
392 392
        raise errors.ProgrammerError("Unknown test mode %s" % mode)
393 393

  
394 394
      ops = [
395
        opcodes.OpTestJobqueue(notify_waitlock=True,
396
                               notify_exec=True,
397
                               log_messages=test_messages,
398
                               fail=fail)
395
        opcodes.OpTestJqueue(notify_waitlock=True,
396
                             notify_exec=True,
397
                             log_messages=test_messages,
398
                             fail=fail)
399 399
        ]
400 400
      expect_messages = [test_messages]
401 401
      expect_resultlen = 1

Also available in: Unified diff