From: Dave Wallace Date: Mon, 21 Dec 2020 20:15:16 +0000 (-0500) Subject: tests: fix gathering of test src files X-Git-Tag: v21.10-rc0~774 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=8dbcacf642ef7aad21b3d422f94da734677eef81;p=vpp.git tests: fix gathering of test src files - Use hard links instead of soft links so that python module import works correctly for relocated test/vpp_*.py modules. Type: fix Signed-off-by: Dave Wallace Change-Id: If9c031bf0918344dedd4dee5f9336e869590b0ae --- diff --git a/test/Makefile b/test/Makefile index aa229e93970..9bc42752f39 100644 --- a/test/Makefile +++ b/test/Makefile @@ -219,7 +219,7 @@ ext-test-apps: $(BUILD_TEST_SRC): verify-env @mkdir -p $@ - @for file in $(VPP_TEST_SRC); do if [ ! -e $(BUILD_TEST_SRC)/$$(basename $$file) ] ; then ln -s $$file $(BUILD_TEST_SRC) ; fi ; done + @for file in $(VPP_TEST_SRC); do if [ ! -L $$file ] && [ ! -e $(BUILD_TEST_SRC)/$$(basename $$file) ] ; then ln $$file $(BUILD_TEST_SRC) ; fi ; done $(FAILED_DIR): reset @mkdir -p $@