diff options
author | Joshua Harlow <harlowja@gmail.com> | 2014-01-17 23:49:59 -0800 |
---|---|---|
committer | Joshua Harlow <harlowja@gmail.com> | 2014-01-17 23:49:59 -0800 |
commit | 8ddcef3f02edc99398aa85d1449b8780ce9d070c (patch) | |
tree | 9d07e9c30c3715081f1d500bd60733c521189202 /Makefile | |
parent | 61da02ee4318c5e2718fecf922b53e7bfee6d54c (diff) | |
download | vyos-cloud-init-8ddcef3f02edc99398aa85d1449b8780ce9d070c.tar.gz vyos-cloud-init-8ddcef3f02edc99398aa85d1449b8780ce9d070c.zip |
Run pyc cleaning before running tests
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -31,7 +31,7 @@ test-requirements: @echo "Installing cloud-init test dependencies..." sudo pip install -r "$@.txt" -q -test: requirements test-requirements +test: clean_pyc requirements test-requirements @nosetests $(noseopts) tests/ check_version: @@ -40,12 +40,14 @@ check_version: "not equal to code version $(CODE_VERSION)"; exit 2; \ else true; fi +clean_pyc: + @find . -type f -name "*.pyc" -delete + 2to3: 2to3 $(PY_FILES) -clean: +clean: clean_pyc rm -rf /var/log/cloud-init.log /var/lib/cloud/ - find . -type f -name "*.pyc" -delete yaml: @$(CWD)/tools/validate-yaml.py $(YAML_FILES) @@ -57,5 +59,5 @@ deb: ./packages/bddeb .PHONY: test pylint pyflakes 2to3 clean pep8 rpm deb yaml check_version -.PHONE: test-requirements requirements +.PHONE: test-requirements requirements clean_pyc |