Skip to content

Commit

Permalink
Merge pull request #1363 from tlyu/dedup-testcase
Browse files Browse the repository at this point in the history
testing: avoid duplicate filenames
  • Loading branch information
obra authored Dec 11, 2023
2 parents 86b8b28 + 95589b9 commit 74a2010
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/makefiles/testcase.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ SKETCH_FILE=$(wildcard *.ino)
BIN_FILE=$(subst .ino,,$(SKETCH_FILE))
LIB_FILE=${BIN_FILE}-latest.a

TEST_FILES=$(sort $(wildcard $(SRC_DIR)/*.cpp))
# Immediate assignment prevents duplicates after append from HAS_KTEST_FILE
TEST_FILES:=$(sort $(wildcard $(SRC_DIR)/*.cpp))

# If we have a ktest file and no generated testcase,
# we want to turn it into a generated testcase
Expand Down

0 comments on commit 74a2010

Please sign in to comment.