blob: fb112e98320059e0faf34133915c3415a952d136 [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05002# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
Fathi Boudra422bf772019-12-02 11:10:16 +02006# Script to interact with an OpenEmbedded file system
7#
8# This script is not standalone and should be sourced by a top expect script.
9#
10
Chris Kay78ea2c32022-11-15 12:24:24 +000011expect_string "INIT:" "Linux is booting"
12expect_string "root@genericarmv8:~#" "Linux reached the root prompt"
Fathi Boudra422bf772019-12-02 11:10:16 +020013send "shutdown -h now\r"
14
Chris Kay78ea2c32022-11-15 12:24:24 +000015expect_re "(Power down|System halted)" "Linux shut down successfully"
Fathi Boudra422bf772019-12-02 11:10:16 +020016exit_uart 0