Merge lp:~brendan-donegan/messaging-app/python3_autopilot into lp:messaging-app
- python3_autopilot
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Gustavo Pichorim Boiko |
Approved revision: | 113 |
Merged at revision: | 135 |
Proposed branch: | lp:~brendan-donegan/messaging-app/python3_autopilot |
Merge into: | lp:messaging-app |
Diff against target: |
52 lines (+5/-5) 3 files modified
debian/control (+2/-2) tests/CMakeLists.txt (+1/-1) tests/autopilot/messaging_app/tests/test_messaging.py (+2/-2) |
To merge this branch: | bzr merge lp:~brendan-donegan/messaging-app/python3_autopilot |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gustavo Pichorim Boiko (community) | Approve | ||
PS Jenkins bot | continuous-integration | Needs Fixing | |
Martin Pitt | Approve | ||
Review via email: mp+223041@code.launchpad.net |
Commit message
Convert autopilot tests to use python3
Description of the change
Fixes a small issue that allows the messaging-app tests to be run in autopilot3 and updates the packaging so that they are install in the python3 path.
PS Jenkins bot (ps-jenkins) wrote : | # |
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:109
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:109
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
- 110. By Brendan Donegan
-
Merged from trunk
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:110
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
Brendan Donegan (brendan-donegan) wrote : | # |
Are there any related MPs required for this MP to build/function as expected? Please list.
No
Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)
Yes
Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?
Yes, on the device
Did you successfully run all tests found in your component's Test Plan (https:/
N/A? Only test code is changed here
If you changed the UI, was the change specified/approved by design?
N/A, no UI changes
If you changed the packaging (debian), did you subscribe a core-dev to this MP?
Need to find a core-dev. Not able to subscribe anyone.
- 111. By Brendan Donegan
-
Merged from trunk
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:111
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
Martin Pitt (pitti) wrote : | # |
packaging change ack from core-dev.
I Ahmad (iahmad) wrote : | # |
it seems 'make install' from tests folder still copying the files to python2.7 dist-packages folder. You may need to update debian/
I Ahmad (iahmad) wrote : | # |
Ah wrong copy/paste. Not debian/
> it seems 'make install' from tests folder still copying the files to python2.7
> dist-packages folder. You may need to update debian/
> autopilot.install ?
- 112. By Brendan Donegan
-
Modify CMakeLists.txt to install in python3 dist-packages
Brendan Donegan (brendan-donegan) wrote : | # |
You're absolutely right - I had to edit CMakeLists.txt. Tested this with bzr bd and it now installs to /usr/lib/
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:112
http://
Executed test runs:
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:112
http://
Executed test runs:
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
- 113. By Brendan Donegan
-
Merged from trunk
Brendan Donegan (brendan-donegan) wrote : | # |
Caught this up with trunk.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:112
http://
Executed test runs:
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:113
http://
Executed test runs:
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
Gustavo Pichorim Boiko (boiko) wrote : | # |
Did you perform an exploratory manual test run of the code change and any related functionality on device or emulator?
Yes
Did CI run pass? If not, please explain why.
No, but not related to the changes on this MR.
Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?
Yes
Code looks good and works as expected!
Preview Diff
1 | === modified file 'debian/control' |
2 | --- debian/control 2014-07-02 18:16:09 +0000 |
3 | +++ debian/control 2014-07-08 13:31:01 +0000 |
4 | @@ -7,7 +7,7 @@ |
5 | dh-translations, |
6 | python-flake8, |
7 | pkg-config, |
8 | - python, |
9 | + python3, |
10 | qt5-default, |
11 | qtbase5-dev (>= 5.0), |
12 | qtdeclarative5-dev (>= 5.0), |
13 | @@ -40,7 +40,7 @@ |
14 | libqt5test5, |
15 | libqt5widgets5, |
16 | messaging-app (>= ${binary:Version}), |
17 | - python-autopilot, |
18 | + python3-autopilot, |
19 | ubuntu-ui-toolkit-autopilot, |
20 | ofono-phonesim-autostart, |
21 | Description: autopilot tests for messaging-app |
22 | |
23 | === modified file 'tests/CMakeLists.txt' |
24 | --- tests/CMakeLists.txt 2013-11-21 13:26:32 +0000 |
25 | +++ tests/CMakeLists.txt 2014-07-08 13:31:01 +0000 |
26 | @@ -1,6 +1,6 @@ |
27 | set(AUTOPILOT_DIR autopilot/messaging_app) |
28 | |
29 | -execute_process(COMMAND python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()" |
30 | +execute_process(COMMAND python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" |
31 | OUTPUT_VARIABLE PYTHON_PACKAGE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) |
32 | |
33 | install(DIRECTORY ${AUTOPILOT_DIR} |
34 | |
35 | === modified file 'tests/autopilot/messaging_app/tests/test_messaging.py' |
36 | --- tests/autopilot/messaging_app/tests/test_messaging.py 2014-06-25 07:21:10 +0000 |
37 | +++ tests/autopilot/messaging_app/tests/test_messaging.py 2014-07-08 13:31:01 +0000 |
38 | @@ -29,12 +29,12 @@ |
39 | class BaseMessagingTestCase(MessagingAppTestCase): |
40 | |
41 | def setUp(self): |
42 | - |
43 | # determine whether we are running with phonesim |
44 | try: |
45 | out = subprocess.check_output( |
46 | ['/usr/share/ofono/scripts/list-modems'], |
47 | - stderr=subprocess.PIPE |
48 | + stderr=subprocess.PIPE, |
49 | + universal_newlines=True |
50 | ) |
51 | have_phonesim = out.startswith('[ /phonesim ]') |
52 | except subprocess.CalledProcessError: |
FAILED: Continuous integration, rev:109 /code.launchpad .net/~brendan- donegan/ messaging- app/python3_ autopilot/ +merge/ 223041/ +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/ messaging- app-ci/ 224/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- utopic- touch/885 jenkins. qa.ubuntu. com/job/ generic- mediumtests- utopic/ 803/console jenkins. qa.ubuntu. com/job/ messaging- app-utopic- amd64-ci/ 18 jenkins. qa.ubuntu. com/job/ messaging- app-utopic- armhf-ci/ 18 jenkins. qa.ubuntu. com/job/ messaging- app-utopic- armhf-ci/ 18/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ messaging- app-utopic- i386-ci/ 18 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- mako/1295 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- utopic- armhf/1622 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- utopic- armhf/1622/ artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 8456 jenkins. qa.ubuntu. com/job/ autopilot- testrunner- otto-utopic/ 709/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- utopic- amd64/943 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- utopic- amd64/943/ artifact/ work/output/ *zip*/output. zip
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/messaging- app-ci/ 224/rebuild
http://