onos/tools/test/bin/onos-push-test-bits
DongRyeol Cha 5c0a9f0d0a Supports IPv6 address for scp and rsync
ONOS-7680

Change-Id: Ica7466715c64765310bfc7bf34126ed02d1818b7
2018-05-30 04:17:10 +00:00

18 lines
610 B
Bash
Executable File

#!/bin/bash
# -----------------------------------------------------------------------------
# Remotely pushes test bits to a remote test machine and unrolls them in /tmp
# -----------------------------------------------------------------------------
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults
node=${1:-$OCN}
remote=$ONOS_USER@$node
remote_scp=$ONOS_USER@[$node]
scp -q $ONOS_TEST_TAR $remote_scp:/tmp
ssh $remote "
rm -f /tmp/onos $ONOS_TEST_BITS
cd /tmp && tar zxf $ONOS_TEST_BITS.tar.gz && ln -s onos-test-$ONOS_POM_VERSION onos
"