Skip to content

Commit c0d022d

Browse files
committed
restore-disk-auto.robot: Gather final log to make it easier to read it after running
Signed-off-by: Filip Gołaś <[email protected]>
1 parent 3706508 commit c0d022d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

util/restore-disk-auto.robot

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Resource ../lib/clonezilla.robot
77

88
Suite Setup Run Keywords
99
... Prepare Test Suite
10+
Suite Teardown Log <pre>${LOG}</pre> html=True
1011
# Test suite used to quickly flash disk images with preinstalled OSes using Clonezilla.
1112
# Two environment variables must be set prior to running it:
1213
# - SOURCE_IMAGE
@@ -20,6 +21,8 @@ Suite Setup Run Keywords
2021
# - The same, but redirect the Clonezilla's output onto ttyS0 if video output is not available:
2122
# SOURCE_IMAGE=1_windows_ubuntu TARGET_DISK=nvme0n1 CLONEZILLA_TTY=ttyS0 ./scripts/run.sh util/restore-disk-auto.robot
2223

24+
*** Variables ***
25+
${LOG}= ${EMPTY}
2326

2427
*** Test Cases ***
2528
Restore Disk Clonezilla
@@ -54,7 +57,10 @@ Restore Disk Clonezilla
5457
WHILE ${current_time} < ${end_time}
5558
${out}= Read From Terminal
5659
${len}= Get Length ${out}
57-
IF ${len} > 0 Log To Console ${out}
60+
IF ${len} > 0
61+
Log To Console ${out}
62+
VAR ${LOG}= ${LOG}${out} scope=SUITE
63+
END
5864
Sleep 1s
5965

6066
${rebooted}= Run Keyword And Return Status Should Contain ${out} ${TIANOCORE_STRING}

0 commit comments

Comments
 (0)