nfvbenchvm: keep only 1 copy of behave_tests code 79/73279/1
authorGwenael Lambrouin <gwenael.lambrouin@orange.com>
Mon, 13 Dec 2021 16:53:31 +0000 (17:53 +0100)
committerGwenael Lambrouin <gwenael.lambrouin@orange.com>
Tue, 8 Mar 2022 14:27:12 +0000 (15:27 +0100)
Have multiple versions of the code in the VM can be confusing during
troubleshooting sessions, so we only keep one copy of behave_tests code
as we did for nfvbench code.

Change-Id: I5af6cd960486bafaaddfcbac11504c6dcbd1848d
Signed-off-by: Gwenael Lambrouin <gwenael.lambrouin@orange.com>
nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/52-nfvbench-script

index 37af915..4edc493 100755 (executable)
@@ -47,8 +47,10 @@ cp xtesting/testcases.yaml /usr/local/lib/python3.6/site-packages/xtesting/ci/te
 python3 ./docker/cleanup_generators.py
 rm -rf /opt/nfvbench/.git
 rm -rf /opt/nfvbench/nfvbench
+rm -rf /opt/nfvbench/behave_tests
 # symlink to NFVbench sources
 ln -s /usr/local/lib/python3.6/site-packages/nfvbench /opt/nfvbench/nfvbench
+ln -s /usr/local/lib/python3.6/site-packages/behave_tests /opt/nfvbench/behave_tests
 # persist env variables
 echo "export TREX_VER=\"$TREX_VER\"" >> /etc/profile.d/nfvbench.sh
 echo "export TREX_EXT_LIBS=\"/opt/trex/$TREX_VER/external_libs\"" >> /etc/profile.d/nfvbench.sh