Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
asmeurer opened this issue Jul 23, 2012 · 1 comment
Open

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

asmeurer opened this issue Jul 23, 2012 · 1 comment

Comments

@asmeurer
Copy link
Member

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
Copy link

bgee commented Apr 20, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants