Add "YARDSTICK_REPO_DIR" into tests path 99/54199/2
authorting wu <ting.wu@enea.com>
Tue, 20 Mar 2018 13:17:28 +0000 (14:17 +0100)
committerting wu <ting.wu@enea.com>
Tue, 20 Mar 2018 13:28:32 +0000 (14:28 +0100)
In the CI flow, script "load_images.sh",
variable ${YARDSTICK_REPO_DIR} needs to be added
in front of tests path to avoid the error:

sed: can't read tests/opnfv/test_cases/*:
No such file or directory

This fix is specific to arm64

JIRA: YARDSTICK-1086

Change-Id: If19b295233bb7313226dae70df016ad236bed2ac
Signed-off-by: ting wu <ting.wu@enea.com>
tests/ci/load_images.sh

index d723823..5df769c 100755 (executable)
@@ -251,7 +251,7 @@ main()
     load_yardstick_image
     if [ "${YARD_IMG_ARCH}" == "arm64" ]; then
         #We have overlapping IP with the real network
-        for filename in tests/opnfv/test_cases/*; do
+        for filename in ${YARDSTICK_REPO_DIR}/tests/opnfv/test_cases/*; do
             sed -i "s/cidr: '10.0.1.0\/24'/cidr: '10.3.1.0\/24'/g" "${filename}"
         done
     else