sympy / sympy-bot-old

SymPy pull request helper
http://reviews.sympy.org/
Other
24 stars 16 forks source link

Add option to run tests from different interpreters in parallel #119

Open asmeurer opened 12 years ago

asmeurer commented 12 years ago

Now that I have a computer with eight cores, I'd like to be able to run the bot tests in parallel. Something like a command line option --cores N with would spawn up to N processes. Can this be done using the current subprocess framework, or would we need to use the multiprocessing module?

bgee commented 11 years ago

I've been experimenting with multiprocessing module and the concern I'm having is running multiple threads will cause the printing messed up. I tried using locks but had no luck. Maybe because we are running from cmd2?

Subprocess has a check_output method which can grap whatever being printed on stdout and convert it to a string which might be useful.