Skip to content

Commit 45f7225

Browse files
committed
bugs/1293-bios-settings-randomly-reset.robot: add
Signed-off-by: Maciej Pijanowski <[email protected]>
1 parent 5b6e421 commit 45f7225

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
*** Settings ***
2+
Library Collections
3+
Library OperatingSystem
4+
Library Process
5+
Library String
6+
Library Telnet timeout=20 seconds connection_timeout=120 seconds
7+
Library SSHLibrary timeout=90 seconds
8+
Library RequestsLibrary
9+
Resource ../variables.robot
10+
Resource ../keywords.robot
11+
Resource ../keys.robot
12+
13+
Suite Setup Run Keywords
14+
... Prepare Test Suite
15+
... AND
16+
... Skip If not ${SMM_WRITE_PROTECTION_SUPPORT} SMM BIOS write protection not supported
17+
... AND
18+
... Skip If not ${DASHARO_SECURITY_MENU_SUPPORT} Dasharo Security menu not supported
19+
Suite Teardown Run Keyword
20+
... Log Out And Close Connection
21+
22+
Default Tags automated
23+
24+
25+
*** Test Cases ***
26+
Reproduce issue #1293
27+
[Documentation] Test preparation involves: enabling both quiet and fast boot,
28+
... making sure that UEFI shell will be the 1st entry.
29+
... In test, we power cycle until we can see the boot strings again,
30+
... indicating quiet boot has been disabled (reset to default).
31+
${start_time}= Get Time epoch
32+
Rte Psu Off
33+
Sleep 5
34+
Rte Psu On
35+
Sleep 5
36+
Rte Power Off
37+
Sleep 5
38+
FOR ${i} IN RANGE 100
39+
${iteration_start}= Get Time epoch
40+
Log To Console \n--- Iteration ${i+1}/100 ---
41+
Rte Power On
42+
${out}= Read From Terminal Until UEFI Interactive Shell
43+
Should Not Contain ${out} ${TIANOCORE_STRING}
44+
Rte Power Off time=${1}
45+
${iteration_end}= Get Time epoch
46+
${iteration_duration}= Evaluate round(${iteration_end} - ${iteration_start}, 2)
47+
${total_elapsed}= Evaluate round(${iteration_end} - ${start_time}, 2)
48+
Log To Console Iteration ${i+1} completed in ${iteration_duration}s | Total elapsed: ${total_elapsed}s
49+
Sleep 1
50+
END
51+
${final_time}= Get Time epoch
52+
${total_test_time}= Evaluate round(${final_time} - ${start_time}, 2)
53+
Log To Console \nTest completed in ${total_test_time} seconds

0 commit comments

Comments
 (0)