From cd9eaa3be000203f91f5c3bc23f7e2f9a92bfe69 Mon Sep 17 00:00:00 2001 From: Lachlan Plant Date: Thu, 23 Aug 2018 11:47:12 -0500 Subject: [PATCH] Fix tox linters for zuul Fix bashate and yamllint to only run if files are provided Story: 2003364 Task: 24419 Change-Id: If78c2c11e6db353dfee4759d6db1d7526225b1f8 Signed-off-by: Lachlan Plant --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 812999f3..1523066f 100644 --- a/tox.ini +++ b/tox.ini @@ -21,12 +21,12 @@ commands = -not -name \*~ \ -not -name \*.md \ -name \*.sh \ - -print0 | xargs -0 bashate -v" + -print0 | xargs --no-run-if-empty -0 bashate -v" bash -c "find {toxinidir} \ \( -name middleware/io-monitor/recipes-common/io-monitor/io-monitor/io_monitor/test-tools/yaml/* -prune \) \ -o \( -name .tox -prune \) \ -o -type f -name '*.yaml' \ - -print0 | xargs -0 yamllint" + -print0 | xargs --no-run-if-empty -0 yamllint" [testenv:pep8] usedevelop = False