Fix --blacklist when --jobs > 1 in run_tests.py. stable
authorRy4an Brase <ry4an-hg@ry4an.org>
Wed, 14 Apr 2010 00:24:47 -0500
branchstable
changeset 725 212432db2043
parent 724 211fa4b9803d
child 726 f7050b041b5f
Fix --blacklist when --jobs > 1 in run_tests.py. The options parsing logic replaces the options.blacklist initial value, a list of filenames, with a dict of test names to filenames. When runchildren rebuilds the command line to launch child processes the dict is flattened and provided as a malformed argument when a filename is expected. Fix is to remove the blacklist option from child invocations since the filtering is handled in the parent anyway. [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Wed Apr 14 09:08:47 2010 +0200
+++ b/tests/run-tests.py	Wed Apr 14 00:24:47 2010 -0500
@@ -664,6 +664,7 @@
 
     optcopy = dict(options.__dict__)
     optcopy['jobs'] = 1
+    del optcopy['blacklist']
     if optcopy['with_hg'] is None:
         optcopy['with_hg'] = os.path.join(BINDIR, "hg")
     optcopy.pop('anycoverage', None)