diff options
Diffstat (limited to 'testing')
-rwxr-xr-x | testing/ssh | 20 | ||||
-rwxr-xr-x | testing/start-testing | 2 |
2 files changed, 21 insertions, 1 deletions
diff --git a/testing/ssh b/testing/ssh new file mode 100755 index 000000000..fc72c265e --- /dev/null +++ b/testing/ssh @@ -0,0 +1,20 @@ +#!/bin/bash + +DIR=$(dirname `readlink -f $0`) +. $DIR/testing.conf + +if [ $# == 0 ] +then + echo "$0 <host>" + exit 1 +fi + +host=$1 +ip="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`" +if [ -z $ip ] +then + echo "Host '$host' unknown" + exit 1 +fi + +exec ssh $SSHCONF -q root@$ip diff --git a/testing/start-testing b/testing/start-testing index 183729423..db582cfd7 100755 --- a/testing/start-testing +++ b/testing/start-testing @@ -15,7 +15,7 @@ echo "Starting test environment" [ `id -u` -eq 0 ] || die "You must be root to run $0" -check_commands virsh +check_commands kvm virsh log_action "Deploying kernel $KERNEL" execute "ln -fs $KNLSRC $KNLTARGET" |