changeset 14192:38e387a64f58

run-tests.py: correctly handle list options with parallel tasks
author Augie Fackler <durin42@gmail.com>
date Wed, 04 May 2011 10:39:10 -0500
parents e1c34ce39fae
children c4de16642861
files tests/run-tests.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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))