aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ci
diff options
context:
space:
mode:
authorrexlee8776 <limingjiang@huawei.com>2016-08-21 02:45:01 +0000
committerrexlee8776 <limingjiang@huawei.com>2016-08-21 02:45:30 +0000
commite5a2154bf5c2a18c661fa3fba540c172f177dec1 (patch)
treee0815095a1bff1e32c7239348bbd92ac30938896 /tests/ci
parent6234e5e4edca9a92322fb0eb0aaf625291a42a7a (diff)
bugfix: storperf scp do not work
Change-Id: I4d6441dff2afddb2290f4855f714d811e8394a51 Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Diffstat (limited to 'tests/ci')
-rw-r--r--tests/ci/scp_storperf_admin-rc.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/ci/scp_storperf_admin-rc.sh b/tests/ci/scp_storperf_admin-rc.sh
index fd94aaa17..af2885b01 100644
--- a/tests/ci/scp_storperf_admin-rc.sh
+++ b/tests/ci/scp_storperf_admin-rc.sh
@@ -1,7 +1,5 @@
-#!/usr/bin/expect
-set timeout 30
+#!/bin/bash
-spawn scp -o StrictHostKeyChecking=no /root/storperf_admin-rc root@192.168.200.1:/root/storperf_admin-rc
-expect "root@192.168.200.1's password: "
-send "root\r"
-interact
+ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
+sshpass -p root scp 2>/dev/null $ssh_options ~/storperf_admin-rc \
+ root@192.168.200.1:/root/ &> /dev/null