Skip to content

Commit 7cd533e

Browse files
committed
Allow to pass in arguments after coverage
1 parent 6c8bae9 commit 7cd533e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ endif
260260
coverage:
261261
@echo "Building with coverage enabled..."
262262
$(MAKE) clean
263-
$(MAKE) COVERAGE=1 build_app
263+
$(eval COVERAGE_TARGETS := $(filter-out coverage,$(MAKECMDGOALS)))
264+
$(MAKE) COVERAGE=1 $(if $(COVERAGE_TARGETS),$(COVERAGE_TARGETS),build_app)
264265
@echo "Running tests..."
265266
@if [ ! -f $(BUILD_DIR)/$(BIN).elf ]; then \
266267
echo "Error: $(BUILD_DIR)/$(BIN).elf not found. Build failed."; \

0 commit comments

Comments
 (0)