From 4a248bfafd7a79f16a72b5d289effd31c013a9eb Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Wed, 31 Oct 2018 09:55:18 -0500 Subject: [PATCH] Bashate was not detecting E004 in all cases Bashate was not always detecting: E004 File did not end with a newline unless the last file processed by bashate had the violation. This meant that zuul jobs would randomly fail. The fix is run individually (-n 1) Change-Id: I7934c3da82adb450fd1ba5f2630591369df8b828 Closes-Bug: 1800865 Signed-off-by: Al Bailey --- base/setup/files/custom.sh | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/setup/files/custom.sh b/base/setup/files/custom.sh index d56f37717..37a727310 100644 --- a/base/setup/files/custom.sh +++ b/base/setup/files/custom.sh @@ -1 +1 @@ -export TMOUT=900 \ No newline at end of file +export TMOUT=900 diff --git a/tox.ini b/tox.ini index 147d74531..d6a6977be 100644 --- a/tox.ini +++ b/tox.ini @@ -27,7 +27,7 @@ commands = -not -name \*~ \ -not -name \*.md \ -name \*.sh \ - -print0 | xargs -0 bashate -v \ + -print0 | xargs -n 1 -0 bashate -v \ -i E006,E041,E042,E043,E044 -e E*" bash -c "find {toxinidir} \ \( -path {toxinidir}/.tox \) -a -prune \