On my system at leas,t the fact that we pass "-j 8" to make, automagically causes the tests to run in parallel already. Does that not work for you?
Ethan On Thu, May 29, 2014 at 10:12 AM, Ben Pfaff <b...@nicira.com> wrote: > Ethan, I think you should review this. > > On Mon, May 19, 2014 at 3:37 PM, Joe Stringer <joestrin...@nicira.com> wrote: >> Signed-off-by: Joe Stringer <joestrin...@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 >> >> _______________________________________________ >> dev mailing list >> dev@openvswitch.org >> http://openvswitch.org/mailman/listinfo/dev > > > > -- > "I don't normally do acked-by's. I think it's my way of avoiding > getting blamed when it all blows up." Andrew Morton _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev