Merge lp://staging/~javier.collado/autopilot/bug1285575 into lp://staging/autopilot
Status: | Needs review |
---|---|
Proposed branch: | lp://staging/~javier.collado/autopilot/bug1285575 |
Merge into: | lp://staging/autopilot |
Diff against target: |
263 lines (+195/-1) 2 files modified
autopilot/introspection/__init__.py (+76/-1) autopilot/tests/unit/test_introspection_features.py (+119/-0) |
To merge this branch: | bzr merge lp://staging/~javier.collado/autopilot/bug1285575 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Needs Fixing | |
Autopilot Hackers | Pending | ||
Review via email: mp+208638@code.staging.launchpad.net |
Commit message
Get proxy object faster if process information is given
Process name and command line can be passed to filter processes based on the information from /proc/<pid>/ to get a proxy object faster (no need to query multiple connections through dbus and wait for long time because of timeouts)
Description of the change
This change adds the process_name and process_cmdline options to
autopilot.
This can be used to get a proxy object faster than with only the
application_name since there's no need to query each dbus connection one by one
to find the one for the application being searched.
Unmerged revisions
- 449. By Javier Collado
-
Added a few test cases for _check_proc_fs
- 448. By Javier Collado
-
Fixed test_raises_
ProcessSearchEr ror autopilot.
tests.unit. test_introspect ion_features. ProxyObjectGene rationTests. test_raises_ ProcessSearchEr ror - 447. By Javier Collado
-
Fixed test_makes_
child_calls autopilot.
tests.unit. test_introspect ion_features. ProxyObjectGene rationTests. test_makes_ child_calls - 446. By Javier Collado
-
Added _check_proc_fs function
This function helps to search a process for a given process name and/or process
command line. The name and command line are extracted from /proc/<pid>/stat and
/proc/<pid>/cmdline by the psutil library.
FAILED: Continuous integration, rev:446 /code.launchpad .net/~javier. collado/ autopilot/ bug1285575/ +merge/ 208638/ +edit-commit- message
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http:// jenkins. qa.ubuntu. com/job/ autopilot- ci/534/ jenkins. qa.ubuntu. com/job/ autopilot- trusty- amd64-ci/ 260/console jenkins. qa.ubuntu. com/job/ autopilot- trusty- armhf-ci/ 260/console jenkins. qa.ubuntu. com/job/ autopilot- trusty- i386-ci/ 169/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- trusty/ 3565/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- amd64/3569/ console
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/autopilot- ci/534/ rebuild
http://