From 0e95c187530af01dd6209d5de8eb95ea56e2798b Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Thu, 3 Feb 2022 16:03:26 +0000 Subject: tests: fix test-checkstyle-diff if no .py changed Type: fix Signed-off-by: Klement Sekera Change-Id: I6d23ff14380b0154f617b3ab7cd1acd5aa45106a --- test/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/Makefile') 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 \"*********************************************************************\" &&\ -- cgit 1.2.3-korg