From 0daad9993ff4d1ea146e0100e78708964c6a9921 Mon Sep 17 00:00:00 2001 From: "guillaume.lambert" Date: Wed, 8 Dec 2021 10:14:09 +0100 Subject: [COMMON] Fix & add to bashisms CI failover scripts Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert Change-Id: Icf139e50d44aed0315d0e4cb21c59ad05a5a3bdb --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 61acbbba2a..dee4f3accf 100644 --- a/tox.ini +++ b/tox.ini @@ -65,7 +65,9 @@ commands = || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | \ yum install devscripts-minimal )" >&2 && exit 1)' find . -not -path '*/\.*' -name *.sh -exec checkbashisms \{\} + + find . -not -path '*/\.*' -name *.failover -exec checkbashisms -f \{\} + sh -c "! find . -not -path '*/\.*' -name *.sh -exec grep 'local .*=' \{\} + || exit 2" + sh -c "! find . -not -path '*/\.*' -name *.failover -exec grep 'local .*=' \{\} + || exit 2" [testenv:autopep8] deps = -- cgit 1.2.3-korg