Merge lp:~pitti/ubuntu-system-settings-online-accounts/py3tests into lp:ubuntu-system-settings-online-accounts

Proposed by Martin Pitt
Status: Merged
Approved by: Alberto Mardegan
Approved revision: 122
Merged at revision: 121
Proposed branch: lp:~pitti/ubuntu-system-settings-online-accounts/py3tests
Merge into: lp:ubuntu-system-settings-online-accounts
Diff against target: 89 lines (+9/-9)
7 files modified
debian/control (+3/-3)
debian/rules (+1/-1)
debian/tests/autopilot (+1/-1)
debian/tests/control (+1/-1)
tests/autopilot/autopilot.pro (+1/-1)
tests/autopilot/online_accounts_ui/emulators/items.py (+1/-1)
tests/autopilot/online_accounts_ui/tests/test_online_accounts_ui.py (+1/-1)
To merge this branch: bzr merge lp:~pitti/ubuntu-system-settings-online-accounts/py3tests
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Alberto Mardegan (community) Approve
Review via email: mp+221118@code.launchpad.net

Commit message

Run tests with Python 3 autopilot.

Description of the change

The autopilot branch that ships autopilot3-sandbox-run finally landed in
utopic. This makes tests run flawlessly with Python 3, so let's do that.

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

I tested the package build and autopkgtest with

  adt-run .// --- qemu adt-utopic-amd64-cloud.img

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
122. By Martin Pitt

fix verbose option in autopkgtest

Revision history for this message
Alberto Mardegan (mardy) wrote :

LGTM, thanks a lot!

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

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-05-09 08:18:39 +0000
3+++ debian/control 2014-05-28 08:08:17 +0000
4@@ -4,7 +4,7 @@
5 Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com>
6 Build-Depends: debhelper (>= 9),
7 pkg-config,
8- python:any (>= 2.7),
9+ python3:any,
10 libaccounts-qt5-dev,
11 libsystemsettings-dev (>= 0.1+13.10.20130806),
12 qt5-default,
13@@ -85,12 +85,12 @@
14 Section: debug
15 Priority: extra
16 Depends: ${misc:Depends},
17- ${python:Depends},
18+ ${python3:Depends},
19 autopilot-qt5,
20 ubuntu-system-settings-online-accounts (>= ${binary:Version}),
21 uoa-integration-tests,
22 libqt5test5,
23- python-autopilot,
24+ python3-autopilot,
25 Description: Online Accounts setup for Ubuntu Touch - tests
26 Online Accounts setup utility for the Ubuntu Touch System Settings.
27 .
28
29=== modified file 'debian/rules'
30--- debian/rules 2013-10-17 11:13:28 +0000
31+++ debian/rules 2014-05-28 08:08:17 +0000
32@@ -18,4 +18,4 @@
33 dh_install --fail-missing
34
35 %:
36- dh $@ --with python2
37+ dh $@ --with python3
38
39=== modified file 'debian/tests/autopilot'
40--- debian/tests/autopilot 2014-05-16 11:04:14 +0000
41+++ debian/tests/autopilot 2014-05-28 08:08:17 +0000
42@@ -2,5 +2,5 @@
43
44 set -e
45
46-dbus-launch --exit-with-session xvfb-run -s '-screen 0 1024x768x24' autopilot run online_accounts_ui
47+autopilot3-sandbox-run -a '-v' online_accounts_ui
48
49
50=== modified file 'debian/tests/control'
51--- debian/tests/control 2014-05-16 11:04:14 +0000
52+++ debian/tests/control 2014-05-28 08:08:17 +0000
53@@ -1,3 +1,3 @@
54 Tests: autopilot
55-Depends: @, autopilot-desktop-legacy, dbus-x11, xvfb
56+Depends: @, autopilot-desktop (>= 1.5.0+14.10.20140526), python3-evdev, dbus-x11, xvfb
57 Restrictions: allow-stderr
58
59=== modified file 'tests/autopilot/autopilot.pro'
60--- tests/autopilot/autopilot.pro 2013-09-25 11:38:44 +0000
61+++ tests/autopilot/autopilot.pro 2014-05-28 08:08:17 +0000
62@@ -2,6 +2,6 @@
63
64 TEMPLATE = aux
65
66-autopilot.path = $${INSTALL_PREFIX}/lib/python2.7/dist-packages/
67+autopilot.path = $${INSTALL_PREFIX}/lib/python3/dist-packages/
68 autopilot.files = online_accounts_ui
69 INSTALLS = autopilot
70
71=== modified file 'tests/autopilot/online_accounts_ui/emulators/items.py'
72--- tests/autopilot/online_accounts_ui/emulators/items.py 2013-09-25 11:38:44 +0000
73+++ tests/autopilot/online_accounts_ui/emulators/items.py 2014-05-28 08:08:17 +0000
74@@ -1,4 +1,4 @@
75-#! /usr/bin/env python
76+#! /usr/bin/env python3
77 # -*- coding: utf-8 -*-
78 #
79 # Copyright (C) 2013 Canonical Ltd.
80
81=== modified file 'tests/autopilot/online_accounts_ui/tests/test_online_accounts_ui.py'
82--- tests/autopilot/online_accounts_ui/tests/test_online_accounts_ui.py 2014-05-16 11:04:23 +0000
83+++ tests/autopilot/online_accounts_ui/tests/test_online_accounts_ui.py 2014-05-28 08:08:17 +0000
84@@ -1,4 +1,4 @@
85-#! /usr/bin/env python
86+#! /usr/bin/env python3
87 # -*- coding: utf-8 -*-
88 #
89 # Copyright (C) 2013 Canonical Ltd.

Subscribers

People subscribed via source and target branches