automatic parallelism does not work on OS X
Bug #1092276 reported by
Joe Gordon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Testrepository |
Fix Released
|
Wishlist
|
Chris Jones |
Bug Description
When running 'testr run --parallel' on a Intel Core i7 CPU (4 cores) OS X 10.7.5, only one thread is used.
Discovered when running nova unit tests with 'tox -epy27'
Changed in testrepository: | |
status: | Triaged → Fix Committed |
assignee: | nobody → Chris Jones (cmsj) |
milestone: | none → next |
Changed in testrepository: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
We need a platform specific override for this: testcommand. py cy(self) :
concurrenc y = None proc/cpuinfo' , 'rb'): ('processor' ):
concurren cy = int(line[ line.find( ':')+1: ]) + 1
testrepository/
def local_concurren
if sys.platform == 'linux2':
for line in file('/
if line.startswith
return concurrency
# No concurrency logic known.
return None
We might be able to query multiprocessing, or you could implement an equivalent codepath for mac.