Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e: Do not try to use govm if user has specified the VM address #738

Merged
merged 1 commit into from Nov 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 7 additions & 5 deletions demo/lib/host.bash
Expand Up @@ -203,12 +203,14 @@ host-create-vm() {
}

host-wait-vm-ssh-server() {
VM_IP=$(${GOVM} ls | awk "/$VM_NAME/{print \$4}")
while [ "x$VM_IP" == "x" ]; do
host-command "${GOVM} start \"$VM_NAME\""
sleep 5
if [ -z "$VM_IP" ]; then
VM_IP=$(${GOVM} ls | awk "/$VM_NAME/{print \$4}")
done
while [ "x$VM_IP" == "x" ]; do
host-command "${GOVM} start \"$VM_NAME\""
sleep 5
VM_IP=$(${GOVM} ls | awk "/$VM_NAME/{print \$4}")
done
fi
echo "# VM SSH server : ssh $VM_SSH_USER@$VM_IP"

if [ -d "$HOME/vms/data/$VM_NAME" ]; then
Expand Down