[PATCH] run-tests.py: correctly handle list options with parallel tasks

Augie Fackler durin42 at gmail.com
Wed May 4 10:40:08 CDT 2011


# HG changeset patch
# User Augie Fackler <durin42 at gmail.com>
# Date 1304523550 18000
# Node ID ca28b01b66ce8c901483a8315a0735652ed849cd
# Parent  cd841aadca0c707908c333d63baed4ecaf2ef18d
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 @@
         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))
 


More information about the Mercurial-devel mailing list