Merge lp:~dobey/ubuntuone-dev-tools/dbus-priv into lp:ubuntuone-dev-tools
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Natalia Bidart | ||||
Approved revision: | 33 | ||||
Merged at revision: | 33 | ||||
Proposed branch: | lp:~dobey/ubuntuone-dev-tools/dbus-priv | ||||
Merge into: | lp:ubuntuone-dev-tools | ||||
Diff against target: |
35 lines (+16/-1) 1 file modified
ubuntuone/devtools/testcase.py (+16/-1) |
||||
To merge this branch: | bzr merge lp:~dobey/ubuntuone-dev-tools/dbus-priv | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eric Casteleijn (community) | Approve | ||
Natalia Bidart (community) | Approve | ||
Review via email: mp+63022@code.launchpad.net |
Commit message
Check that DBUS_SESSION_
Fail the tests if the address doesn't point to a private instance
Pass the address directly into the BusConnection()
Description of the change
This makes the DBus test cases fail if the session bus address is wrong, and should always connect to the right daemon, since it passes in the address directly.
However, I would like to add a check for number of connections to the daemon, so that if we connect, and there are a bunch of existing connections, the test will fail, because it's probably connecting to the wrong thing, and/or the previous run tests aren't getting cleaned up properly and their connections closed. Unfortunately, it seems there is a larger problem where the previous run tests aren't getting their connections closed properly, and so stay connected to the bus and instantiated in memory.
Thanks!