• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/expect -f
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.
5set timeout -1
6
7spawn ./start_vm -hdb cloud_init.img
8
9expect "login:"
10send "crosvm\r"
11
12expect "Password:"
13send "crosvm\r"
14
15expect "$ "
16send "cloud-init status --wait\r"
17
18expect "$ "
19send "sudo poweroff\r"
20
21expect eof
22