From 02da92670bd80d2d3183fbb1b15b9f4e87459bd1 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Fri, 8 Jan 2021 08:43:14 +0000 Subject: tests: Use soft links for the test file staging Type: fix with hard links this sequence doesn't work echo "GARBAGE" >> test/vpp_ipsec.py git checkout test/vpp_ipsec.py also blow away the staging diretory with 'test-wipe' just to be thorough Signed-off-by: Neale Ranns Change-Id: Ic38d7ec514102759f2eafead59c7f56c5b39f33d --- test/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/Makefile b/test/Makefile index 9bc42752f39..514cb27fc14 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 [ ! -L $$file ] && [ ! -e $(BUILD_TEST_SRC)/$$(basename $$file) ] ; then ln $$file $(BUILD_TEST_SRC) ; fi ; done + @for file in $(VPP_TEST_SRC); do if [ ! -L $$file ] && [ ! -e $(BUILD_TEST_SRC)/$$(basename $$file) ] ; then ln -s $$file $(BUILD_TEST_SRC) ; fi ; done $(FAILED_DIR): reset @mkdir -p $@ @@ -267,7 +267,8 @@ reset: wipe: reset @make -C ext clean @rm -rf $(VENV_PATH) - @rm -rf $(patsubst %,%/__pycache__, $(VPP_TEST_DIRS) $(BUILD_TEST_SRC)) + @rm -rf $(patsubst %,%/__pycache__, $(VPP_TEST_DIRS)) + @rm -rf $(BUILD_TEST_SRC) $(TEST_DOC_BR): $(PIP_INSTALL_DONE) @mkdir -p $@ -- cgit 1.2.3-korg