Merge lp:~ahayzen/music-app/python3-depends into lp:music-app/trusty

Proposed by Andrew Hayzen
Status: Rejected
Rejected by: Victor Thompson
Proposed branch: lp:~ahayzen/music-app/python3-depends
Merge into: lp:music-app/trusty
Diff against target: 62 lines (+16/-4)
3 files modified
debian/control (+2/-2)
tests/autopilot/CMakeLists.txt (+13/-1)
tests/autopilot/music_app/tests/__init__.py (+1/-1)
To merge this branch: bzr merge lp:~ahayzen/music-app/python3-depends
Reviewer Review Type Date Requested Status
Victor Thompson Disapprove
Ubuntu Phone Apps Jenkins Bot continuous-integration Needs Fixing
Review via email: mp+226227@code.launchpad.net

Commit message

* Change to python3 depends

Description of the change

* Change to python3 depends

Test MP to see if python3 depends resolve jenkins issues.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
518. By Andrew Hayzen

* Change cmake autopilot to python3

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
519. By Andrew Hayzen

* Fix for py3 syntax error for cmake file

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
520. By Andrew Hayzen

* Further tweaks

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

After running "phablet-click-test-setup" the tests pass on the device. I think the SDK or pieces of the platform are stale in Jenkins and in the device until updated. I do not know how to get Jenkins updated.

review: Disapprove

Unmerged revisions

520. By Andrew Hayzen

* Further tweaks

519. By Andrew Hayzen

* Fix for py3 syntax error for cmake file

518. By Andrew Hayzen

* Change cmake autopilot to python3

517. By Andrew Hayzen

* Change to python3 depends

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-06-06 21:07:59 +0000
3+++ debian/control 2014-07-10 00:02:33 +0000
4@@ -5,7 +5,7 @@
5 Build-Depends: cmake,
6 debhelper (>= 9),
7 intltool,
8- python,
9+ python3,
10 qt5-default,
11 Standards-Version: 3.9.4
12 Homepage: https://launchpad.net/music-app
13@@ -38,7 +38,7 @@
14 Depends: libautopilot-qt (>= 1.4),
15 libqt5test5,
16 music-app (= ${source:Version}),
17- python-mock,
18+ python3-autopilot,
19 ubuntu-ui-toolkit-autopilot,
20 ${misc:Depends},
21 Description: Autopilot tests for Music App
22
23=== modified file 'tests/autopilot/CMakeLists.txt'
24--- tests/autopilot/CMakeLists.txt 2014-05-26 16:50:13 +0000
25+++ tests/autopilot/CMakeLists.txt 2014-07-10 00:02:33 +0000
26@@ -1,5 +1,5 @@
27 if(INSTALL_TESTS)
28-execute_process(COMMAND python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
29+execute_process(COMMAND python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
30 OUTPUT_VARIABLE PYTHON_PACKAGE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
31
32 install(DIRECTORY ${AUTOPILOT_DIR}
33@@ -7,4 +7,16 @@
34 )
35 endif(INSTALL_TESTS)
36
37+function(declare_autopilot_test ENVIROMENT TEST_NAME WORKING_DIR)
38+ if(AUTOPILOT_BIN)
39+ add_custom_command(TARGET autopilot
40+ COMMAND ${ENVIROMENT} autopilot run ${TEST_NAME} ${AUTOPILOT_TESTS_ARGS}
41+ WORKING_DIRECTORY ${WORKING_DIR})
42+ endif()
43+endfunction()
44+
45+declare_autopilot_test(AUTOPILOT_APP=${music_src_BINARY_DIR}/music-app
46+ ${AUTOPILOT_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
47+ )
48+
49 add_subdirectory(music_app)
50
51=== modified file 'tests/autopilot/music_app/tests/__init__.py'
52--- tests/autopilot/music_app/tests/__init__.py 2014-06-27 01:23:04 +0000
53+++ tests/autopilot/music_app/tests/__init__.py 2014-07-10 00:02:33 +0000
54@@ -224,7 +224,7 @@
55 "/mediastore.sql", dblocation, relhome)
56
57 con = sqlite3.connect(mediascannerpath + "/mediastore.db")
58- f = open(mediascannerpath + "/mediastore.sql", 'r')
59+ f = open(mediascannerpath + "/mediastore.sql", 'rb')
60 sql = f.read()
61 cur = con.cursor()
62 cur.executescript(sql)

Subscribers

People subscribed via source and target branches

to status/vote changes: