From ee8a06de029d34db58f2d7f8161eb5a4c7a28227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Le=20Meur?= Date: Sun, 5 Oct 2025 16:27:02 +0200 Subject: [PATCH] chore: use bats junit formatter only in CI --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5e1d4ff4..6bcf9d83 100644 --- a/Makefile +++ b/Makefile @@ -96,9 +96,13 @@ test-%: prepare-test @$(call check_image,$*) # Ensure that the image is built @make --silent build-$* +ifeq ($(CI), true) # Execute the test harness and write result to a TAP file - set -x - IMAGE=$* bats/bin/bats --formatter junit $(bats_flags) | tee target/junit-results-$*.xml + IMAGE=$* bats/bin/bats $(bats_flags) --formatter junit | tee target/junit-results-$*.xml +else +# Execute the test harness + IMAGE=$* bats/bin/bats $(bats_flags) +endif test: prepare-test @make --silent list | while read image; do make --silent "test-$${image}"; done