From c848d226bf2355ba54ab95cca15839557cf935c0 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 9 Dec 2022 12:23:35 +0100 Subject: [PATCH] Switch code style check to enforcement mode Signed-off-by: Gilles Peskine --- tests/scripts/all.sh | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 6b11346d1..1e10da04c 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -3741,20 +3741,12 @@ support_test_psa_compliance () { [ "$ver_major" -eq 3 ] && [ "$ver_minor" -ge 10 ] } -component_test_corrected_code_style () { - ./scripts/code_style.py --fix - - msg "build: make, default config (out-of-box), corrected code style" - make - - msg "test: main suites make, default config (out-of-box), corrected code style" - make test - - # Clean up code-style corrections - git checkout -- . +component_check_code_style () { + msg "Check C code style" + ./scripts/code_style.py } -support_test_corrected_code_style() { +support_check_code_style() { case $(uncrustify --version) in *0.75.1*) true;; *) false;;