Merge lp:~canonical-platform-qa/ubuntu-autopilot-tests/motu into lp:ubuntu-autopilot-tests/ubuntu-experience-tests

Proposed by Leo Arias
Status: Merged
Approved by: Leo Arias
Approved revision: 30
Merged at revision: 26
Proposed branch: lp:~canonical-platform-qa/ubuntu-autopilot-tests/motu
Merge into: lp:ubuntu-autopilot-tests/ubuntu-experience-tests
Diff against target: 47 lines (+13/-8)
3 files modified
debian/changelog (+5/-5)
debian/control (+2/-1)
debian/rules (+6/-2)
To merge this branch: bzr merge lp:~canonical-platform-qa/ubuntu-autopilot-tests/motu
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Martin Pitt (community) Approve
Barry Warsaw (community) Approve
Ubuntu Testcase Admins Pending
Review via email: mp+229905@code.launchpad.net

Commit message

Initial commit of Debian packaging.

To post a comment you must log in.
26. By Leo Arias

Set the release.

Revision history for this message
Martin Pitt (pitti) wrote :

I reviewed the packaging. It's by and large fine, just two nitpicks:

 * debian/rules: --fail-missing isn't a general option for all debhelper programs. This should be done in an override_dh_install and passed to dh_install only. It happens to work like that, but looks both confusing and also not robust.

 * Note that flake8 is not a good tool for Python 3 code due to https://bugs.debian.org/748838 . So if you ever use Python 3 specific code in the tests this will blow up.

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
27. By Leo Arias

Move the --fail-missing to override_dh_install.

28. By Leo Arias

Do not use flake8 because of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748838

Revision history for this message
Leo Arias (elopio) wrote :

Thanks for the review Martin. I addressed your comments, but I'm not sure if I did it right. In particular, I'm not sure if I can call the python3 binary from debian/rules.
Please, take a look again.

29. By Leo Arias

Specify the dir.

Revision history for this message
Barry Warsaw (barry) wrote :

Yep, as long as you have the right build-deps, calling `python3 -m foo` should be perfectly fine. Of course, it will only test the default Python 3, which for now is -- and only -- Python 3.4.

There are several alternatives if you want to make it more general. I'm assuming you don't care about Python 2 (yay! :). You could set PYBUILD_TEST_ARGS as described in the pybuild manpage. Or you could set up tox to run your tests against all supported Python version. Both are probably overkill for now.

LGTM.

review: Approve
Revision history for this message
Leo Arias (elopio) wrote :

yes, I'm perfectly fine checking the static errors only with the default python. Thanks for the review barry.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Martin Pitt (pitti) wrote :

I think you can drop the now unused python3-flake8 build dep. Otherwise, LGTM!

review: Approve
30. By Leo Arias

Removed the flake8 dependency.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)
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/changelog'
2--- debian/changelog 2014-03-10 12:55:24 +0000
3+++ debian/changelog 2014-08-08 06:53:50 +0000
4@@ -1,5 +1,5 @@
5-ubuntu-experience-tests (0.1-0ubuntu1) UNRELEASED; urgency=medium
6-
7- * Initial release.
8-
9- -- Omer Akram <om26er@ubuntu.com> Fri, 07 Feb 2014 00:11:53 +0500
10+ubuntu-experience-tests (0.1-0ubuntu1) utopic; urgency=medium
11+
12+ * Initial release. (Closes: #1353842)
13+
14+ -- Leonardo Arias Fonseca <leo.arias@canonical.com> Thu, 07 Aug 2014 00:36:42 -0600
15
16=== modified file 'debian/control'
17--- debian/control 2014-07-03 05:13:26 +0000
18+++ debian/control 2014-08-08 06:53:50 +0000
19@@ -4,8 +4,9 @@
20 Maintainer: Ubuntu Quality Team <ubuntu-quality@lists.ubuntu.com>
21 Build-Depends: debhelper (>= 9.0.0),
22 dh-python,
23+ pyflakes,
24 python3-all,
25- python3-flake8,
26+ python3-pep8,
27 python3-setuptools,
28 Standards-Version: 3.9.5
29 Homepage: https://launchpad.net/ubuntu-autopilot-tests/
30
31=== modified file 'debian/rules'
32--- debian/rules 2014-07-03 05:13:26 +0000
33+++ debian/rules 2014-08-08 06:53:50 +0000
34@@ -6,7 +6,11 @@
35 export PYBUILD_NAME=ubuntu_experience_tests
36
37 %:
38- dh $@ --fail-missing --with python3 --buildsystem pybuild
39+ dh $@ --with python3 --buildsystem pybuild
40
41 override_dh_auto_test:
42- flake8 ubuntu_experience_tests/
43+ python3 -m pep8 ubuntu_experience_tests/
44+ pyflakes3 ubuntu_experience_tests/
45+
46+override_dh_install:
47+ dh_install --fail-missing

Subscribers

People subscribed via source and target branches