run-tests.py: correctly handle list options with parallel tasks
authorAugie Fackler <durin42@gmail.com>
Wed, 04 May 2011 10:39:10 -0500
changeset 14192 38e387a64f58
parent 14191 e1c34ce39fae
child 14193 c4de16642861
run-tests.py: correctly handle list options with parallel tasks
tests/run-tests.py
--- a/tests/run-tests.py	Wed May 04 23:12:23 2011 +0300
+++ 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))