X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Fci%2Fscp_storperf_admin-rc.sh;h=7c3896d88ee49ad9d0e912b0703f30c649f56b40;hb=a2176af5514fc55ad8421635ad70ce4f26890ed6;hp=fd94aaa17c1faed101d57711e4e5a076e7e22eaa;hpb=6234e5e4edca9a92322fb0eb0aaf625291a42a7a;p=yardstick.git diff --git a/tests/ci/scp_storperf_admin-rc.sh b/tests/ci/scp_storperf_admin-rc.sh index fd94aaa17..7c3896d88 100644 --- a/tests/ci/scp_storperf_admin-rc.sh +++ b/tests/ci/scp_storperf_admin-rc.sh @@ -1,7 +1,16 @@ -#!/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 +############################################################################## +# Copyright (c) 2016 Huawei Technologies Co.,Ltd and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +# Copy storperf_admin-rc to deployment location. + +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