Skip to content

Commit ecb6c76

Browse files
committed
Makefile: Fix test check.
Signed-off-by: zhanglinjing <Linjing.Zhang@infineon.com>
1 parent c8c2743 commit ecb6c76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ CATEGORY = $(word 2, $(subst _, ,$@))
5353
test_%: unity
5454
$(eval CATEGORY := $(word 2, $(subst _, ,$@)))
5555
$(Q) cp src/corelibs/$(CATEGORY)/$@.cpp build 2>/dev/null || true
56+
@if [ -z "$(TESTS)" ]; then \
57+
echo "Must set variable TESTS in order to be able to flash a specific arduino core test !"; \
58+
exit 1; \
59+
fi
5660
$(MAKE) flash TESTS=$(TESTS)
5761

5862
# UART tests targets

0 commit comments

Comments
 (0)