diff options
author | Don Anderson <dda@ddanderson.com> | 2013-12-19 12:48:50 -0500 |
---|---|---|
committer | Don Anderson <dda@ddanderson.com> | 2013-12-19 12:48:50 -0500 |
commit | abd318e5f16edf7e694c5faca2c2dbb3f200213b (patch) | |
tree | 5bfeddeaf6ec066c90875f99362ea29639b592cd /test/suite/run.py | |
parent | ee597c75a8775256cc74ea88c0443466d60a701f (diff) | |
download | mongo-abd318e5f16edf7e694c5faca2c2dbb3f200213b.tar.gz |
Add '--parallel N' option to run.py. Using '--parallel' requires
that some additional packages are installed: testtools, extras,
python-subunit and concurrencytest.
ref #788
Diffstat (limited to 'test/suite/run.py')
-rw-r--r-- | test/suite/run.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/suite/run.py b/test/suite/run.py index af21c8014de..933e272841f 100644 --- a/test/suite/run.py +++ b/test/suite/run.py @@ -63,6 +63,7 @@ Options:\n\ -g | --gdb all subprocesses (like calls to wt) use gdb\n\ -h | --help show this message\n\ -p | --preserve preserve output files in WT_TEST/<testname>\n\ + -P N | --parallel N run all tests in parallel using N processes\n\ -t | --timestamp name WT_TEST according to timestamp\n\ -v N | --verbose N set verboseness to N (0<=N<=3, default=1)\n\ \n\ @@ -200,6 +201,7 @@ if __name__ == '__main__': # Turn numbers and ranges into test module names preserve = timestamp = debug = gdbSub = False + parallel = 0 configfile = None configwrite = False dirarg = None @@ -222,6 +224,12 @@ if __name__ == '__main__': if option == '-debug' or option == 'd': debug = True continue + if option == '-parallel' or option == 'P': + if parallel != 0 or len(args) == 0: + usage() + sys.exit(False) + parallel = int(args.pop(0)) + continue if option == '-preserve' or option == 'p': preserve = True continue @@ -283,5 +291,5 @@ if __name__ == '__main__': import pdb pdb.set_trace() - result = wttest.runsuite(tests) + result = wttest.runsuite(tests, parallel) sys.exit(not result.wasSuccessful()) |