automatic parallelism does not work on OS X

Bug #1092276 reported by Joe Gordon
6
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'

Revision history for this message
Robert Collins (lifeless) wrote :

We need a platform specific override for this:
testrepository/testcommand.py
    def local_concurrency(self):
        if sys.platform == 'linux2':
            concurrency = None
            for line in file('/proc/cpuinfo', 'rb'):
                if line.startswith('processor'):
                    concurrency = int(line[line.find(':')+1:]) + 1
            return concurrency
        # No concurrency logic known.
        return None

We might be able to query multiprocessing, or you could implement an equivalent codepath for mac.

Changed in testrepository:
status: New → Triaged
importance: Undecided → Wishlist
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.