Revision d0c8c01d qa/ganeti-qa.py
b/qa/ganeti-qa.py | ||
---|---|---|
245 | 245 |
|
246 | 246 |
RunTestIf("instance-reboot", qa_instance.TestInstanceReboot, instance) |
247 | 247 |
|
248 |
if qa_config.TestEnabled('instance-rename'):
|
|
248 |
if qa_config.TestEnabled("instance-rename"):
|
|
249 | 249 |
rename_source = instance["name"] |
250 | 250 |
rename_target = qa_config.get("rename", None) |
251 | 251 |
RunTest(qa_instance.TestInstanceShutdown, instance) |
... | ... | |
310 | 310 |
otherwise None |
311 | 311 |
|
312 | 312 |
""" |
313 |
if qa_config.TestEnabled('instance-export'):
|
|
313 |
if qa_config.TestEnabled("instance-export"):
|
|
314 | 314 |
RunTest(qa_instance.TestInstanceExportNoTarget, instance) |
315 | 315 |
|
316 | 316 |
expnode = qa_config.AcquireNode(exclude=pnode) |
... | ... | |
319 | 319 |
|
320 | 320 |
RunTest(qa_instance.TestBackupList, expnode) |
321 | 321 |
|
322 |
if qa_config.TestEnabled('instance-import'):
|
|
322 |
if qa_config.TestEnabled("instance-import"):
|
|
323 | 323 |
newinst = qa_config.AcquireInstance() |
324 | 324 |
try: |
325 | 325 |
RunTest(qa_instance.TestInstanceImport, pnode, newinst, |
... | ... | |
373 | 373 |
RunTestIf(["instance-migrate", "rapi"], |
374 | 374 |
qa_rapi.TestRapiInstanceMigrate, instance) |
375 | 375 |
|
376 |
if qa_config.TestEnabled('instance-replace-disks'):
|
|
376 |
if qa_config.TestEnabled("instance-replace-disks"):
|
|
377 | 377 |
othernode = qa_config.AcquireNode(exclude=[pnode, snode]) |
378 | 378 |
try: |
379 | 379 |
RunTest(qa_instance.TestReplaceDisks, |
... | ... | |
448 | 448 |
del instance |
449 | 449 |
|
450 | 450 |
multinode_tests = [ |
451 |
('instance-add-drbd-disk',
|
|
451 |
("instance-add-drbd-disk",
|
|
452 | 452 |
qa_instance.TestInstanceAddWithDrbdDisk), |
453 | 453 |
] |
454 | 454 |
|
... | ... | |
462 | 462 |
RunTest(qa_group.TestAssignNodesIncludingSplit, |
463 | 463 |
constants.INITIAL_NODE_GROUP_NAME, |
464 | 464 |
pnode["primary"], snode["primary"]) |
465 |
if qa_config.TestEnabled('instance-convert-disk'):
|
|
465 |
if qa_config.TestEnabled("instance-convert-disk"):
|
|
466 | 466 |
RunTest(qa_instance.TestInstanceShutdown, instance) |
467 | 467 |
RunTest(qa_instance.TestInstanceConvertDisk, instance, snode) |
468 | 468 |
RunTest(qa_instance.TestInstanceStartup, instance) |
... | ... | |
503 | 503 |
|
504 | 504 |
""" |
505 | 505 |
parser = optparse.OptionParser(usage="%prog [options] <config-file>") |
506 |
parser.add_option('--yes-do-it', dest='yes_do_it',
|
|
506 |
parser.add_option("--yes-do-it", dest="yes_do_it",
|
|
507 | 507 |
action="store_true", |
508 | 508 |
help="Really execute the tests") |
509 | 509 |
(qa_config.options, args) = parser.parse_args() |
... | ... | |
527 | 527 |
finally: |
528 | 528 |
qa_utils.CloseMultiplexers() |
529 | 529 |
|
530 |
if __name__ == '__main__':
|
|
530 |
if __name__ == "__main__":
|
|
531 | 531 |
main() |
Also available in: Unified diff