Merge lp:~aacid/autopilot/add_wait_for_proxy_upstart_launcher into lp:autopilot
| Status: | Rejected |
|---|---|
| Rejected by: | Albert Astals Cid on 2015-09-02 |
| Proposed branch: | lp:~aacid/autopilot/add_wait_for_proxy_upstart_launcher |
| Merge into: | lp:autopilot |
| Diff against target: |
66 lines (+15/-9) 2 files modified
autopilot/application/_launcher.py (+10/-7) autopilot/testcase.py (+5/-2) |
| To merge this branch: | bzr merge lp:~aacid/autopilot/add_wait_for_proxy_upstart_launcher |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Approve on 2015-09-01 | |
| Christopher Lee (community) | 2015-08-20 | Needs Fixing on 2015-08-31 | |
| Autopilot Hackers | 2015-08-19 | Pending | |
|
Review via email:
|
|||
Commit Message
Add the possibility of not waiting for the proxy of the launched app
this is useful when launching an app that we know it has already been launched and is now suspended
- 570. By Albert Astals Cid on 2015-08-20
-
flake8++
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:570
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Christopher Lee (veebers) wrote : | # |
I don't think I understand, what's the intention of launching an application that is already launched, is suspended and we don't care about the proxy object?
| Albert Astals Cid (aacid) wrote : | # |
The intention of launching an application that is already launched is that to verify that it will be brought up to the front of the application stack on unity8 (i.e. it will become the focused application).
We don't care about the proxy object because:
a) I already have it since i already laucnhed it
b) as said since it's launched and non focused, it is suspended and thus will never answer to dbus
| Christopher Lee (veebers) wrote : | # |
Ok I understand why you want this now.
Are you unable to launch the app by interacting with unity (i.e. clicking on the app icon) because that's all mocked out during your test?
Regarding the code changes, you need to add additional documentation to the docstring covering what 'wait_for_proxy' is and what it is for. Perhaps a better name than wait_for_proxy would be 'return_proxy'. You need to make sure it's clear if pass False then None is returned instead.
- 571. By Albert Astals Cid on 2015-09-01
-
Rename param and document it
| Albert Astals Cid (aacid) wrote : | # |
> Are you unable to launch the app by interacting with unity (i.e. clicking on the app icon)
> because that's all mocked out during your test?
I could probably launch the program doing something different, but I'm trying to modify our unit test that was working fine in the past as less as possible, I don't think it's good practice for layers to break a working unit test and then ask for it to be changed.
> Regarding the code changes, you need to add additional documentation to the
> docstring covering what 'wait_for_proxy' is and what it is for. Perhaps a
> better name than wait_for_proxy would be 'return_proxy'. You need to make
> sure it's clear if pass False then None is returned instead.
Ok, done
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:571
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 572. By Albert Astals Cid on 2015-09-01
-
flake..
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:572
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 573. By Albert Astals Cid on 2015-09-01
-
flake
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:573
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Unmerged revisions
- 573. By Albert Astals Cid on 2015-09-01
-
flake
- 572. By Albert Astals Cid on 2015-09-01
-
flake..
- 571. By Albert Astals Cid on 2015-09-01
-
Rename param and document it
- 570. By Albert Astals Cid on 2015-08-20
-
flake8++
- 569. By Albert Astals Cid on 2015-08-19
-
Add the possibility of not waiting for the proxy of the launched app
this is useful when launching an app that we know it has already been launched and is now suspended

FAILED: Continuous integration, rev:569 jenkins. qa.ubuntu. com/job/ autopilot- ci/1130/ jenkins. qa.ubuntu. com/job/ autopilot- wily-amd64- ci/60/console jenkins. qa.ubuntu. com/job/ autopilot- wily-armhf- ci/59/console jenkins. qa.ubuntu. com/job/ autopilot- wily-i386- ci/60/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/autopilot- ci/1130/ rebuild
http://