aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2021-01-08 08:43:14 +0000
committerDave Wallace <dwallacelf@gmail.com>2021-01-08 16:18:51 +0000
commit02da92670bd80d2d3183fbb1b15b9f4e87459bd1 (patch)
tree8b46ee75dd9f8e45b3c384e75ed3e2d8df1f641b
parent27ba5008a16eddccc0b285272de7f89fd0aa3a24 (diff)
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 <neale@graphiant.com> Change-Id: Ic38d7ec514102759f2eafead59c7f56c5b39f33d
-rw-r--r--test/Makefile5
1 files changed, 3 insertions, 2 deletions
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 $@