aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ci/scp_storperf_files.sh
diff options
context:
space:
mode:
authorJingLu5 <lvjing5@huawei.com>2017-07-11 02:34:41 +0000
committerJingLu5 <lvjing5@huawei.com>2017-07-17 07:17:58 +0000
commit8ffbb26f5150f2ecdce44100c126cf6c183933cd (patch)
tree93e57a22f7fe5b8e165bb02b4728cac4ec27813f /tests/ci/scp_storperf_files.sh
parent7ee54db221fbb4173de011585a425f0750dd6ccf (diff)
Open storperf testcase to huawei-pod2
JIRA: YARDSTICK-712 Change-Id: If91c936a3a59580a987cb6762db5d063edf6c9d7 Signed-off-by: JingLu5 <lvjing5@huawei.com>
Diffstat (limited to 'tests/ci/scp_storperf_files.sh')
-rw-r--r--tests/ci/scp_storperf_files.sh21
1 files changed, 18 insertions, 3 deletions
diff --git a/tests/ci/scp_storperf_files.sh b/tests/ci/scp_storperf_files.sh
index 234032cf1..ffcc710cb 100644
--- a/tests/ci/scp_storperf_files.sh
+++ b/tests/ci/scp_storperf_files.sh
@@ -12,9 +12,24 @@
# Copy storperf_admin-rc to deployment location.
ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
+
+case "$NODE_NAME" in
+ "huawei-pod1")
+ JUMP_HOST_IP='192.168.10.6'
+ ;;
+ "huawei-pod2")
+ JUMP_HOST_IP='192.168.11.2'
+ ;;
+ *)
+ # no node name, exit
+ exit 1
+ ;;
+esac
+export JUMP_HOST_IP
+
sshpass -p root scp 2>/dev/null $ssh_options ~/storperf_admin-rc \
- root@192.168.10.6:/root/ &> /dev/null
+ 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@192.168.10.6:/root/ &> /dev/null
+ 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@192.168.10.6:/root/ &> /dev/null
+ root@${JUMP_HOST_IP}:/root/ &> /dev/null