From: Gwenael Lambrouin Date: Mon, 13 Dec 2021 16:53:31 +0000 (+0100) Subject: nfvbenchvm: keep only 1 copy of behave_tests code X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=nfvbench.git;a=commitdiff_plain;h=ae318cc8930dd19a3051fee4a0fc26d1a37c64d8 nfvbenchvm: keep only 1 copy of behave_tests code 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 --- diff --git a/nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/52-nfvbench-script b/nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/52-nfvbench-script index 37af915..4edc493 100755 --- a/nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/52-nfvbench-script +++ b/nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/52-nfvbench-script @@ -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