Open asmeurer opened 12 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.
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 toN
processes. Can this be done using the current subprocess framework, or would we need to use the multiprocessing module?