From e5a2154bf5c2a18c661fa3fba540c172f177dec1 Mon Sep 17 00:00:00 2001 From: rexlee8776 Date: Sun, 21 Aug 2016 02:45:01 +0000 Subject: bugfix: storperf scp do not work Change-Id: I4d6441dff2afddb2290f4855f714d811e8394a51 Signed-off-by: rexlee8776 --- tests/ci/scp_storperf_admin-rc.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'tests') 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 -- cgit 1.2.3-korg