aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKlement Sekera <klement.sekera@gmail.com>2022-05-11 16:54:09 +0200
committerOle Tr�an <otroan@employees.org>2022-05-11 16:25:40 +0000
commite2159bd2d3721592edee90a511647f83ea9a4781 (patch)
tree4d87b26220c8fbd7da4ff4a3fc1df56cf2b2ba7c /test
parentd6ea087174d08d4032a16bdb89f4177fa57d9f4f (diff)
tests: fix checkstyle-python
Add --check to black to pass back error value and fail checkstyle if a reformat would occur. Type: fix Fixes: d9b0c6fbf7aa5bd9af84264105b39c82028a4a29 Signed-off-by: Klement Sekera <klement.sekera@gmail.com> Change-Id: I9a1fbe224929fc461ff833a589f73ca06e7cc9d6
Diffstat (limited to 'test')
-rw-r--r--test/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index b416bc3f5a3..08c6eabe100 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -351,7 +351,7 @@ start-gdb: sanity
.PHONY: checkstyle-python-all
checkstyle-python-all: $(PIP_INSTALL_DONE)
@bash -c "source $(VENV_PATH)/bin/activate &&\
- black -t py39 --diff $(WS_ROOT) ||\
+ black -t py39 --check --diff $(WS_ROOT) ||\
(echo \"*************************************************************************\" &&\
echo \"* Test framework PEP8 compliance check FAILED (maybe: make fixstyle-python)\" &&\
echo \"*************************************************************************\" &&\