aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ci/scp_storperf_files.sh
diff options
context:
space:
mode:
authorJing Lu <lvjing5@huawei.com>2017-07-25 09:48:00 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-07-25 09:48:00 +0000
commit3a87a3262b5aefb7231f90a3b3808b947353eca5 (patch)
treea6397bd5448613f19e415ddedd97bbe57153d9ff /tests/ci/scp_storperf_files.sh
parentf6a24134a515f419090bfd73663a9b1620964123 (diff)
parentd9aba00385c7890a7436837e0a4ac4d0b81c8a32 (diff)
Merge "update storperf installation in Yardstick"
Diffstat (limited to 'tests/ci/scp_storperf_files.sh')
-rw-r--r--tests/ci/scp_storperf_files.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/ci/scp_storperf_files.sh b/tests/ci/scp_storperf_files.sh
index ffcc710cb..71306eb80 100644
--- a/tests/ci/scp_storperf_files.sh
+++ b/tests/ci/scp_storperf_files.sh
@@ -13,23 +13,25 @@
ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
+scp_files(){
+ export JUMP_HOST_IP
+ sshpass -p root scp 2>/dev/null $ssh_options ~/storperf_admin-rc \
+ root@${JUMP_HOST_IP}:/root/ &> /dev/null
+ sshpass -p root scp 2>/dev/null $ssh_options /home/opnfv/repos/storperf/docker-compose/docker-compose.yaml \
+ root@${JUMP_HOST_IP}:/root/ &> /dev/null
+}
+
case "$NODE_NAME" in
"huawei-pod1")
JUMP_HOST_IP='192.168.10.6'
+ scp_files
;;
"huawei-pod2")
JUMP_HOST_IP='192.168.11.2'
+ scp_files
;;
*)
# no node name, exit
- exit 1
+ echo "storperf test case will not run on this pod, skipping scp files..."
;;
esac
-export JUMP_HOST_IP
-
-sshpass -p root scp 2>/dev/null $ssh_options ~/storperf_admin-rc \
- root@${JUMP_HOST_IP}:/root/ &> /dev/null
-sshpass -p root scp 2>/dev/null $ssh_options /home/opnfv/repos/storperf/docker-compose/docker-compose.yaml \
- root@${JUMP_HOST_IP}:/root/ &> /dev/null
-sshpass -p root scp 2>/dev/null $ssh_options /home/opnfv/repos/storperf/docker-compose/nginx.conf \
- root@${JUMP_HOST_IP}:/root/ &> /dev/null