1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

cleanup tests using SSH

This commit is contained in:
Ivan Mikushin
2016-03-31 18:56:18 -07:00
parent 2dd57c5f3a
commit e2f3ac78a7
6 changed files with 31 additions and 29 deletions

View File

@@ -1,6 +1,5 @@
#!/bin/bash
set -e
set -x
cd $(dirname $0)/..
@@ -195,6 +194,7 @@ if [ "$QEMU" == "1" ]; then
KVM_ENABLE="-enable-kvm"
CPU="-cpu host"
fi
set -x
exec qemu-system-${QEMUARCH} -serial stdio \
-rtc base=utc,clock=host \
${KVM_ENABLE} \
@@ -202,7 +202,7 @@ if [ "$QEMU" == "1" ]; then
${machine["$ARCH"]} \
-kernel ${KERNEL} \
-initrd ${INITRD} \
-m 1024 \
-m 2048 \
${network["$ARCH"]} \
$(eval "${cd["$ARCH"]} ${CCIMG}") \
$(eval "${hd["$ARCH"]} ${HD}") \
@@ -240,6 +240,7 @@ elif [ "$QIND" == "1" ]; then
SSH_PUB_ENABLE="--ssh-pub /stuff/rancher.key.pub"
fi
set -x
docker create --name=${NAME} -it ${KVM_ENABLE} \
rancher/qind \
--hostname "rancher-dev" \