diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-08-03 14:41:24 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-08-03 14:42:58 +0200 |
commit | c835641ac0343ca87da2f0cc1bda4e6083f64c6d (patch) | |
tree | 29902ffc877aeac61e2939d83e4edd4598bc756b /tox.ini | |
parent | f6f6562705a1e857c055d2ccb875eed4b619ba68 (diff) |
Run perm in functest-kubernetes
Change-Id: If2d786c50addbd17948afdcd3c803293d03318f8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 7092ae97a37936ff0584e0845d9a87f4e5f86696)
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,5 +1,5 @@ [tox] -envlist = pep8,pylint,yamllint,ansiblelint,bashate,py27,py36,bandit +envlist = pep8,pylint,yamllint,ansiblelint,bashate,py27,py36,bandit,perm [testenv] usedevelop = True @@ -49,3 +49,14 @@ basepython = python2.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" |