summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/takeover
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2010-08-03 11:36:33 +1000
committerMartin Schwenke <martin@meltin.net>2010-08-03 11:36:33 +1000
commit8ca925fe5d4dcb3b35def1b73fd60f0ead8547bc (patch)
tree30850f63184bb030e21b6a5249af8df0b6492508 /ctdb/tests/takeover
parent8cc6ed1d0e9a754c3540e7a4f135ad625a514c90 (diff)
downloadsamba-8ca925fe5d4dcb3b35def1b73fd60f0ead8547bc.tar.gz
samba-8ca925fe5d4dcb3b35def1b73fd60f0ead8547bc.tar.xz
samba-8ca925fe5d4dcb3b35def1b73fd60f0ead8547bc.zip
Testing: IP allocation simulation - improve help for options.
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 058501b92f602e7d2240d1cb08ed78a807564c48)
Diffstat (limited to 'ctdb/tests/takeover')
-rwxr-xr-xctdb/tests/takeover/ctdb_takeover.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ctdb/tests/takeover/ctdb_takeover.py b/ctdb/tests/takeover/ctdb_takeover.py
index c7341b965c..8e5570febd 100755
--- a/ctdb/tests/takeover/ctdb_takeover.py
+++ b/ctdb/tests/takeover/ctdb_takeover.py
@@ -58,21 +58,21 @@ def process_args(extra_options=[]):
help="apply a hack (see the code!!!)")
parser.add_option("-r", "--retries",
action="store", type="int", dest="retries", default=5,
- help="number of retry loops for rebalancing")
+ help="number of retry loops for rebalancing [default: %default]")
parser.add_option("-i", "--iterations",
action="store", type="int", dest="iterations",
default=1000,
- help="number of iterations to run in test")
+ help="number of iterations to run in test [default: %default]")
def seed_callback(option, opt, value, parser):
random.seed(value)
parser.add_option("-s", "--seed",
action="callback", type="int", callback=seed_callback,
- help="number of iterations to run in test")
+ help="initial random number seed for random events")
parser.add_option("-b", "--balance",
action="store_true", dest="balance", default=False,
- help="show (im)balance information")
+ help="show (im)balance information for each event")
parser.add_option("-x", "--exit",
action="store_true", dest="exit", default=False,
help="exit on the 1st gratuitous IP move")