|
| 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 | + ... Then, we power cycle as long as we can see the boot strings again, indicating |
| 29 | + ... quiet boot has been disabled (reset to default). |
| 30 | + ${start_time}= Get Time epoch |
| 31 | + Rte Psu Off |
| 32 | + Sleep 5 |
| 33 | + Rte Psu On |
| 34 | + Sleep 5 |
| 35 | + Rte Power Off |
| 36 | + Sleep 5 |
| 37 | + FOR ${i} IN RANGE 100 |
| 38 | + ${iteration_start}= Get Time epoch |
| 39 | + Log To Console \n--- Iteration ${i+1}/100 --- |
| 40 | + Rte Power On |
| 41 | + ${out}= Read From Terminal Until Shell> |
| 42 | + Should Not Contain ${out} ${TIANOCORE_STRING} |
| 43 | + Rte Power Off |
| 44 | + ${iteration_end}= Get Time epoch |
| 45 | + ${iteration_duration}= Evaluate round(${iteration_end} - ${iteration_start}, 2) |
| 46 | + ${total_elapsed}= Evaluate round(${iteration_end} - ${start_time}, 2) |
| 47 | + Log To Console Iteration ${i+1} completed in ${iteration_duration}s | Total elapsed: ${total_elapsed}s |
| 48 | + Sleep 3 |
| 49 | + END |
| 50 | + ${final_time}= Get Time epoch |
| 51 | + ${total_test_time}= Evaluate round(${final_time} - ${start_time}, 2) |
| 52 | + Log To Console \nTest completed in ${total_test_time} seconds |
0 commit comments