Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions util/restore-disk-auto.robot
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
*** Settings ***
Library DateTime
Library Dialogs
Resource ../variables.robot
Resource ../keywords.robot
Resource ../lib/clonezilla.robot
Library DateTime
Library Dialogs
Resource ../variables.robot
Resource ../keywords.robot
Resource ../lib/clonezilla.robot

Suite Setup Run Keywords
... Prepare Test Suite
Suite Setup Run Keywords
... Prepare Test Suite
Suite Teardown Log <pre>${LOG}</pre> html=True
# Test suite used to quickly flash disk images with preinstalled OSes using Clonezilla.
# Two environment variables must be set prior to running it:
# - SOURCE_IMAGE
Expand All @@ -21,6 +22,10 @@ Suite Setup Run Keywords
# SOURCE_IMAGE=1_windows_ubuntu TARGET_DISK=nvme0n1 CLONEZILLA_TTY=ttyS0 ./scripts/run.sh util/restore-disk-auto.robot


*** Variables ***
${LOG}= ${EMPTY}


*** Test Cases ***
Restore Disk Clonezilla
${clonezilla_tty}= Get Envvar CLONEZILLA_TTY optional=${TRUE}
Expand Down Expand Up @@ -54,7 +59,10 @@ Restore Disk Clonezilla
WHILE ${current_time} < ${end_time}
${out}= Read From Terminal
${len}= Get Length ${out}
IF ${len} > 0 Log To Console ${out}
IF ${len} > 0
Log To Console ${out}
VAR ${LOG}= ${LOG}${out} scope=SUITE
END
Sleep 1s

${rebooted}= Run Keyword And Return Status Should Contain ${out} ${TIANOCORE_STRING}
Expand Down
Loading