Merge lp:~johnsca/charms/trusty/rsyslog-forwarder-ha/lint into lp:charms/trusty/rsyslog-forwarder-ha

Proposed by Cory Johns
Status: Merged
Merged at revision: 11
Proposed branch: lp:~johnsca/charms/trusty/rsyslog-forwarder-ha/lint
Merge into: lp:charms/trusty/rsyslog-forwarder-ha
Diff against target: 54 lines (+19/-4)
4 files modified
.bzrignore (+2/-0)
Makefile (+4/-4)
test_requirements.txt (+1/-0)
tox.ini (+12/-0)
To merge this branch: bzr merge lp:~johnsca/charms/trusty/rsyslog-forwarder-ha/lint
Reviewer Review Type Date Requested Status
Kevin W Monroe Approve
Review via email: mp+288469@code.launchpad.net

Description of the change

To post a comment you must log in.
12. By Cory Johns

Fix `make test` breaking subsequent charm-proof during bundle test

Revision history for this message
Kevin W Monroe (kwmonroe) wrote :

LGTM, merged

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.bzrignore'
2--- .bzrignore 2015-10-02 19:00:41 +0000
3+++ .bzrignore 2016-03-09 20:48:40 +0000
4@@ -1,1 +1,3 @@
5 .coverage
6+.tox
7+.cache
8
9=== modified file 'Makefile'
10--- Makefile 2015-10-02 19:00:41 +0000
11+++ Makefile 2016-03-09 20:48:40 +0000
12@@ -4,12 +4,12 @@
13 build: sync-charm-helpers lint
14
15 lint:
16- @flake8 --exclude hooks/charmhelpers --ignore=E125,F401 hooks
17+ @flake8 --exclude hooks/charmhelpers --ignore=E125,F401,E402 hooks
18
19 test:
20- @dpkg -s python-apt > /dev/null || sudo apt-get install python-apt
21- @sudo pip install -r test_requirements.txt
22- @PYTHONPATH=$(PYTHON_PATH):hooks/ nosetests --nologcapture tests/unit
23+ @dpkg -s python-tox > /dev/null || sudo apt-get install -yq python-tox
24+ @dpkg -s python-apt > /dev/null || sudo apt-get install -yq python-apt
25+ @tox
26
27 bin/charm_helpers_sync.py:
28 @bzr cat lp:charm-helpers/tools/charm_helpers_sync/charm_helpers_sync.py > bin/charm_helpers_sync.py
29
30=== modified file 'test_requirements.txt'
31--- test_requirements.txt 2015-10-02 19:00:41 +0000
32+++ test_requirements.txt 2016-03-09 20:48:40 +0000
33@@ -1,3 +1,4 @@
34+pytest
35 PyYAML==3.10
36 SQLAlchemy==0.9.4
37 mock==1.0.1
38
39=== added file 'tox.ini'
40--- tox.ini 1970-01-01 00:00:00 +0000
41+++ tox.ini 2016-03-09 20:48:40 +0000
42@@ -0,0 +1,12 @@
43+[tox]
44+skipsdist=True
45+envlist = py27
46+
47+[testenv]
48+commands = py.test -v {posargs:tests/unit}
49+deps =
50+ -r{toxinidir}/test_requirements.txt
51+setenv =
52+ PYTHONPATH = {toxinidir}:{toxinidir}/hooks
53+# sitepackages needed for python-apt
54+sitepackages = True

Subscribers

People subscribed via source and target branches