From 87f6f6b9f4748ea33e1d62ea8bcdff3657786295 Mon Sep 17 00:00:00 2001 From: hpk Date: Sat, 21 Mar 2009 21:02:04 +0100 Subject: [PATCH] [svn r63194] more option streamlining --HG-- branch : trunk --- py/test/plugin/pytest_default.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/py/test/plugin/pytest_default.py b/py/test/plugin/pytest_default.py index 8e0a7475e..581e77693 100644 --- a/py/test/plugin/pytest_default.py +++ b/py/test/plugin/pytest_default.py @@ -97,12 +97,11 @@ class DefaultPlugin: group._addoption('-d', '--dist', action="store_true", dest="dist", default=False, help="ad-hoc distribute tests across machines (requires conftest settings)") - group._addoption('-n', '--numprocesses', dest="numprocesses", default=0, metavar="num", + group._addoption('-n', dest="numprocesses", default=0, metavar="numprocesses", action="store", type="int", help="number of local test processes. conflicts with --dist.") - group.addoption('--rsyncdirs', dest="rsyncdirs", default=None, metavar="dir1,dir2,...", - help="comma-separated list of directories to rsync. All those roots will be rsynced " - "into a corresponding subdir on the remote sides. ") + group.addoption('--rsyncdir', action="append", default=[], metavar="dir1", + help="add local directory for rsync to remote test nodes.") group._addoption('--tx', dest="xspec", action="append", help=("add a test environment, specified in XSpec syntax. examples: " "--tx popen//python=python2.5 --tx socket=192.168.1.102"))