From: Klement Sekera Date: Thu, 3 Feb 2022 16:03:26 +0000 (+0000) Subject: tests: fix test-checkstyle-diff if no .py changed X-Git-Tag: v22.10-rc0~421 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=0e95c187530af01dd6209d5de8eb95ea56e2798b;p=vpp.git tests: fix test-checkstyle-diff if no .py changed Type: fix Signed-off-by: Klement Sekera Change-Id: I6d23ff14380b0154f617b3ab7cd1acd5aa45106a --- diff --git a/test/Makefile b/test/Makefile index bf5f91123c2..92face0e99f 100644 --- a/test/Makefile +++ b/test/Makefile @@ -271,8 +271,8 @@ checkstyle-diff: $(PIP_INSTALL_DONE) @bash -c "source $(VENV_PATH)/bin/activate &&\ python3 -m pip install pycodestyle" @bash -c "source $(VENV_PATH)/bin/activate &&\ - cd $(WS_ROOT) && git diff --name-only --no-color --relative HEAD~1 ':!*.patch' | grep '.py$$' | xargs -n 1 \ - pycodestyle --show-source --ignore=W504,E126,E241,E226,E305,E704,E741,E722 -v ||\ + cd $(WS_ROOT) && git diff --name-only --no-color --relative HEAD~1 ':!*.patch' | grep '.py$$' | xargs -I XXX \ + pycodestyle --show-source --ignore=W504,E126,E241,E226,E305,E704,E741,E722 -v XXX ||\ (echo \"*********************************************************************\" &&\ echo \"* Test framework PEP8 compliance check FAILED (checked changed files)\" &&\ echo \"*********************************************************************\" &&\