"""Initializes the cluster.
"""
- RunTest(qa_cluster.TestClusterInit)
- RunTest(qa_node.TestNodeAddAll)
+ if qa_config.TestEnabled('create-cluster'):
+ RunTest(qa_cluster.TestClusterInit)
+ RunTest(qa_node.TestNodeAddAll)
if qa_config.TestEnabled('node-info'):
RunTest(qa_node.TestNodeInfo)
"""
parser = optparse.OptionParser(usage="%prog [options] <config-file>")
- parser.add_option('--dry-run', dest='dry_run',
- action="store_true",
- help="Show what would be done")
parser.add_option('--yes-do-it', dest='yes_do_it',
action="store_true",
help="Really execute the tests")
finally:
qa_config.ReleaseNode(pnode)
- RunTest(qa_node.TestNodeRemoveAll)
+ if qa_config.TestEnabled('create-cluster'):
+ RunTest(qa_node.TestNodeRemoveAll)
if qa_config.TestEnabled('cluster-destroy'):
RunTest(qa_cluster.TestClusterDestroy)