[ovs-dev] [PATCHv2] ovs-dev.py: Add option to run tests in parallel.

Joe Stringer joestringer at nicira.com
Mon May 19 22:37:27 UTC 2014


Signed-off-by: Joe Stringer <joestringer at nicira.com>
---
v2: Make it configurable.
---
 utilities/ovs-dev.py |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py
index 97fab6c..d08ef39 100755
--- a/utilities/ovs-dev.py
+++ b/utilities/ovs-dev.py
@@ -145,6 +145,8 @@ commands.append(make)
 
 def check():
     flags = ""
+    if options.parallel:
+        flags += "-j%d " % options.parallel
     if options.tests:
         flags += options.tests
     ENV["TESTSUITEFLAGS"] = flags
@@ -344,6 +346,8 @@ def main():
     parser.add_option_group(group)
 
     group = optparse.OptionGroup(parser, "check")
+    group.add_option("-p", dest="parallel", metavar="N_TESTS", type="int",
+                     help="Run N_TESTS in parallel")
     group.add_option("--tests", dest="tests", metavar="FILTER",
                      help="""run specific tests or a test category
                           eg, --tests=\"1-10\", --tests=\"-k megaflow\"""")
-- 
1.7.10.4




More information about the dev mailing list