# HG changeset patch # User Augie Fackler # Date 2011-05-04 15:39:10 # Node ID 38e387a64f58fb1ddf73ce3ea72afbe649a90d8a # Parent e1c34ce39faeea2147e40e16ce3fdf4aaa9a073d run-tests.py: correctly handle list options with parallel tasks diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -917,6 +917,9 @@ def runchildren(options, tests): name = '--' + opt.replace('_', '-') if value is True: opts.append(name) + elif isinstance(value, list): + for v in value: + opts.append(name + '=' + str(v)) elif value is not None: opts.append(name + '=' + str(value))