run-tests.py: correctly handle list options with parallel tasks stable
authorAugie Fackler <durin42@gmail.com>
Wed, 04 May 2011 10:39:10 -0500
branchstable
changeset 930 730303014491
parent 929 9bed13113742
child 931 b56e95db7ac5
run-tests.py: correctly handle list options with parallel tasks [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Mon May 02 10:11:18 2011 +0200
+++ b/tests/run-tests.py	Wed May 04 10:39:10 2011 -0500
@@ -917,6 +917,9 @@
         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))