Merge lp:~cjwatson/launchpad/testrunner-uuid into lp:launchpad
Proposed by
Colin Watson
on 2015-09-30
| Status: | Merged |
|---|---|
| Merged at revision: | 17808 |
| Proposed branch: | lp:~cjwatson/launchpad/testrunner-uuid |
| Merge into: | lp:launchpad |
| Diff against target: |
89 lines (+20/-8) 3 files modified
lib/lp/testing/layers.py (+4/-2) lib/lp/testing/tests/test_layers_functional.py (+7/-4) lib/lp/testing/tests/test_pgsql.py (+9/-2) |
| To merge this branch: | bzr merge lp:~cjwatson/launchpad/testrunner-uuid |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| William Grant | code | 2015-09-30 | Approve on 2015-10-08 |
|
Review via email:
|
|||
Commit Message
Generate LP_TEST_INSTANCE based on a UUID as well as the process ID.
Description of the Change
When running tests in parallel, it's possible (and in some setups quite probable) for various LXC containers to end up with the same process IDs for bin/test. To avoid problems caused by this, generate LP_TEST_INSTANCE based on a UUID (replacing "-" with "_" so that it can form part of a valid database name) as well as the process ID.
To post a comment you must log in.

I'd like to see the PID included before the UUID, so it's easy enough to go from test process to DB.