Merge lp:~mikemc/unity-scope-click/add-invalidate-signal into lp:unity-scope-click
Status: | Merged |
---|---|
Approved by: | Alejandro J. Cura |
Approved revision: | 139 |
Merged at revision: | 151 |
Proposed branch: | lp:~mikemc/unity-scope-click/add-invalidate-signal |
Merge into: | lp:unity-scope-click |
Prerequisite: | lp:~alecu/unity-scope-click/non-click-icons |
Diff against target: |
58 lines (+21/-4) 2 files modified
scope/click/download-manager.cpp (+16/-2) scope/tests/test_download_manager.cpp (+5/-2) |
To merge this branch: | bzr merge lp:~mikemc/unity-scope-click/add-invalidate-signal |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alejandro J. Cura (community) | Approve | ||
PS Jenkins bot | continuous-integration | Needs Fixing | |
Review via email:
|
This proposal supersedes a proposal from 2014-02-14.
Commit message
- Add dbus invalidation signal to post-download command sent to UDM.
Description of the change
- Add dbus invalidation signal to post-download command sent to UDM.
Uses dbus-send to trigger dash invalidation.
Using UDM makes this more robust to preview and scope lifetimes.
To run the (disabled due to ARM Jenkins fun) tests, use
% GTEST_ALSO_
To test IRL, try this from your scope build dir:
% U1_DEBUG=1 scope/tests/
If you wait like 10 seconds, you should see a failed installation (assuming you're running on x86). This means that the pkcon part of the command ran as expected.
Q: Error handling: currently I am sending the signal whether or not pkcon succeeds. This is an easy change if that's not the right thing to do.
NOTE:
I haven't been able to test the invalidation command. I need help with this.
Just running the scope with the scope test tool doesn't work, the tool doesn't appear to listen for that signal.
PASSED: Continuous integration, rev:137 jenkins. qa.ubuntu. com/job/ unity-scope- click-ci/ 292/ jenkins. qa.ubuntu. com/job/ unity-scope- click-trusty- amd64-ci/ 193 jenkins. qa.ubuntu. com/job/ unity-scope- click-trusty- armhf-ci/ 190 jenkins. qa.ubuntu. com/job/ unity-scope- click-trusty- armhf-ci/ 190/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity- scope-click- ci/292/ rebuild
http://