[py-svn] r31768 - py/branch/distributed/py/test/rsession
hpk at codespeak.net
hpk at codespeak.net
Tue Aug 29 07:56:23 CEST 2006
Author: hpk
Date: Tue Aug 29 07:56:20 2006
New Revision: 31768
Modified:
py/branch/distributed/py/test/rsession/conftest.py
Log:
improve help for options
Modified: py/branch/distributed/py/test/rsession/conftest.py
==============================================================================
--- py/branch/distributed/py/test/rsession/conftest.py (original)
+++ py/branch/distributed/py/test/rsession/conftest.py Tue Aug 29 07:56:20 2006
@@ -1,11 +1,14 @@
import py
Option = py.test.Config.Option
+defaultwait = 100.0
+
option = py.test.Config.addoptions("distributed testing options",
- Option('-D', '',
+ Option('-D', '--disthosts',
action="store", dest="disthosts", default=None,
help="comma separated list of testhosts"),
Option('', '--waittime',
- action="store", dest="waittime", default=100,
- help="How long (in s) to wait for hanging nodes"),
+ action="store", dest="waittime", default=defaultwait,
+ help="How long (in seconds) to wait for hanging nodes"
+ " (default=%s sec)" % defaultwait),
)
More information about the pytest-commit
mailing list