From cfd5f1b27f226e2d942ff458b24c1d40a2ce4c52 Mon Sep 17 00:00:00 2001 From: Scott Little Date: Fri, 3 Aug 2018 09:36:18 -0400 Subject: [PATCH] tox testing fails if no files match search criteria Change-Id: I439bf32cf11b72085f1c91cd1fbc64f069836929 Signed-off-by: Scott Little --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index c2904c9..d03a53d 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 -0 --no-run-if-empty 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 -0 --no-run-if-empty yamllint" [testenv:pep8] usedevelop = False