From dc19b8043da500e355853a82b466ece54a775852 Mon Sep 17 00:00:00 2001 From: Eric Turgeon <4249848+ericbsd@users.noreply.github.com> Date: Wed, 17 Apr 2024 16:41:58 -0300 Subject: [PATCH] Fixed installation expect script (#9961) --- tests/install.exp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/install.exp b/tests/install.exp index 2fa8e1c43d9..c884649f7c8 100755 --- a/tests/install.exp +++ b/tests/install.exp @@ -7,6 +7,14 @@ set timeout 1800 set PID [spawn vm console "$vm"] send_user "Spawned PID: $PID \n" +# Select the serial console at the boot setup. +expect { + "Autoboot" { + sleep .5 + send "2" + } +} + # ┌───────────FreeNAS 11.3-MASTER-201810170704 Console Setup──────────────┐ # │ ┌───────────────────────────────────────────────────────────────────┐ │ # │ │ 1 Install/Upgrade │ │ @@ -21,7 +29,7 @@ send_user "Spawned PID: $PID \n" # └───────────────────────────────────────────────────────────────────────┘ expect { - "Console Setup" { + "TrueNAS * Console Setup" { sleep .5 send "1" send "\r" @@ -149,13 +157,13 @@ expect { # Installation complete! expect { - "installation on ada0 succeeded!" { + "installation on * succeeded!" { send_user "Bhyve installation finished." sleep 5 exit 0 } - "installation on ada0 failed." { + "installation on * failed." { send_user "Bhyve installation failed." sleep 5 exit 1