1#!/bin/bash 2# Copyright 2021 The Chromium OS Authors. All rights reserved. 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5# 6# Waits indefinitely for the VM to become available. 7 8test_ssh="ssh -o ConnectTimeout=1 vm -t exit" 9 10if ! $test_ssh 2>/dev/null >/dev/null; then 11 echo "Waiting for VM to be available." 12 until $test_ssh 2>/dev/null >/dev/null; do 13 sleep 1 14 printf "." 15 done 16 echo "" 17fi 18