diff options
author | guillaume.lambert <guillaume.lambert@orange.com> | 2022-05-10 22:04:23 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2023-03-27 15:06:35 +0200 |
commit | f4e7eb0eb220b4504c49470c894e8ffcf483f978 (patch) | |
tree | f7be45b5320c304395037c1cdc6900bd28c6d312 /tox.ini | |
parent | d00120571b209d5e5ec328ea97369245eb171e09 (diff) |
Stop bashing functest scripts
Though bash is a good interactive user shell
and apart portability concerns,
many UN*X systems and GNU+Linux distributions now prefers Almquist
or Kornshell variants for scripting in order to improve the system
performance and maintenability.
https://wiki.ubuntu.com/DashAsBinSh
https://mywiki.wooledge.org/Bashism
https://en.wikipedia.org/wiki/Almquist_shell
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I32c5490f9eab54e6cac594f3eac1e392edf8b272
(cherry picked from commit b9fedb6868306a6e3145b7ee851ea3a84353df9c)
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -84,11 +84,11 @@ commands = [testenv:perm] basepython = python3.10 -whitelist_externals = bash +whitelist_externals = sh path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*' commands = - bash -c "\ + sh -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 "\ + sh -c "\ find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0" |