Merge lp:~dobey/ubuntuone-dev-tools/dbus-strict-priv into lp:ubuntuone-dev-tools
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Tim Cole | ||||
Approved revision: | 34 | ||||
Merged at revision: | 34 | ||||
Proposed branch: | lp:~dobey/ubuntuone-dev-tools/dbus-strict-priv | ||||
Merge into: | lp:ubuntuone-dev-tools | ||||
Diff against target: |
93 lines (+13/-46) 1 file modified
ubuntuone/devtools/testcase.py (+13/-46) |
||||
To merge this branch: | bzr merge lp:~dobey/ubuntuone-dev-tools/dbus-strict-priv | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Cole (community) | Approve | ||
Eric Casteleijn (community) | Approve | ||
Review via email: mp+63134@code.launchpad.net |
Commit message
Be more strict about connection to the dbus service, and cleanup of connections
Just enforce disconnection from the bus, rather than trying to remove signals
Don't do inlineCallbacks for now, as it seems to cause many problems
Description of the change
I've gone and removed the inlineCallbacks decorator here, because it seems to create a lot more problems than it is supposed to solve, and the tests in devtools, sso-client, control-panel, and ubuntuone-client all pass without it, while having it makes the additional strictness introduced here cause failures in sso-client and control-panel, because the deferred usage seems to cause race conditions with cleanup of connections to the dbus daemon. And without the decorator, everything seems to just work, as expected, save a few minor other details in a few of the other projects. The tests all pass, but in a couple cases, there is some very weird usage of various test case imports, and MI.
And I think it is better to work everywhere now, as expected, than to just be broken everywhere, because twisted forces us to be broken; so I'm proposing this as it is.
This change is however, set up so that @inlineCallbacks can be added back to the setUp/tearDown when all the other issues are fixed, and it does in fact work correctly.
Looks good