From 7092ae97a37936ff0584e0845d9a87f4e5f86696 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sat, 3 Aug 2019 14:41:24 +0200 Subject: Run perm in functest-kubernetes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If2d786c50addbd17948afdcd3c803293d03318f8 Signed-off-by: Cédric Ollivier --- tox.ini | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 83513833..95a119f2 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = pep8,pylint,yamllint,ansiblelint,bashate,py27,py37,bandit +envlist = pep8,pylint,yamllint,ansiblelint,bashate,py27,py37,bandit,perm [testenv] usedevelop = True @@ -50,3 +50,14 @@ basepython = python3.7 files = build.sh commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files} + +[testenv:perm] +basepython = python3.7 +whitelist_externals = bash +path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/pres/reveal.js/*' +commands = + bash -c "\ + find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \ + -exec ls -l \{\} + | grep '.' && exit 1 || exit 0" + bash -c "\ + find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0" -- cgit 1.2.3-korg