@@ -33,6 +33,7 @@ STB001.001 Verify if no reboot occurs in the firmware
33
33
... does not reset. The test is performed in multiple iterations - after
34
34
... a defined time an attempt to read the same menu is repeated.
35
35
Skip If not ${TESTS_IN_FIRMWARE_SUPPORT } STB001.001 not supported
36
+ Skip
36
37
Power On
37
38
${boot_menu } = Enter Boot Menu Tianocore And Return Construction
38
39
Enter Submenu From Snapshot ${boot_menu } UEFI Shell
@@ -60,18 +61,20 @@ STB001.002 Verify if no reboot occurs in the OS (Ubuntu 22.04)
60
61
... iterations - after a defined time an attempt to read the output of
61
62
... specific commands confirming the stability of work is repeated.
62
63
Skip If not ${TESTS_IN_UBUNTU_SUPPORT } STB001.002 not supported
64
+
63
65
Power On
64
- Boot Operating System ubuntu
66
+ Boot System Or From Connected Disk ubuntu
65
67
Login To Linux
66
68
Switch To Root User
67
69
${timer } = Convert To Integer 0
68
70
Set Local Variable ${device_uptime } 0
69
71
FOR ${i } IN RANGE (${STABILITY_TEST_DURATION } / ${STABILITY_TEST_MEASURE_INTERVAL } ) + 1
70
72
Log To Console \n ----------------------------------------------------------------
71
73
Log To Console ${timer } min.
72
- ${uptime_output } = Execute Command In Terminal uptime -p
73
74
${network_status } = Execute Command In Terminal ip link | grep -E 'enp'
74
- ${current_uptime } = Convert To Integer ${uptime_output.split()[1] }
75
+ ${uptime_output } = Execute Command In Terminal cat /proc/uptime
76
+ ${uptime_list } = Split String ${uptime_output } ${SPACE }
77
+ ${current_uptime } = Convert To Number ${uptime_list } [0 ]
75
78
IF ${current_uptime } >= ${device_uptime }
76
79
Set Local Variable ${device_uptime } ${current_uptime }
77
80
ELSE
@@ -89,6 +92,7 @@ STB001.003 Verify if no reboot occurs in the OS (Windows 11)
89
92
... specific commands confirming the stability of work is repeated.
90
93
Skip If not ${TESTS_IN_WINDOWS_SUPPORT } STB001.002 not supported
91
94
Power On
95
+ Skip
92
96
Login To Windows
93
97
${timer } = Convert To Integer 0
94
98
Set Local Variable ${device_uptime } 0
@@ -97,8 +101,14 @@ STB001.003 Verify if no reboot occurs in the OS (Windows 11)
97
101
Log To Console ${timer } min.
98
102
${uptime_output } = Execute Command In Terminal (get-date) - (gcim Win32_OperatingSystem).LastBootUpTime
99
103
${network_status } = Execute Command In Terminal Get-NetAdapter -Name "Ethernet*"
100
- ${current_uptime } = Convert To Number ${uptime_output.split()[26] }
101
- ${current_uptime } = Convert To Integer ${current_uptime }
104
+
105
+ ${total_seconds_line } = Get Lines Matching Regexp ${uptime_output } .*TotalSeconds.*
106
+ @{line_parts } = Split String ${total_seconds_line } :
107
+ ${total_seconds } = Set Variable ${line_parts[1] }
108
+ ${total_seconds } = Strip String ${total_seconds }
109
+ ${total_seconds } = Convert To Number ${total_seconds }
110
+ ${current_uptime } = Set Variable ${total_seconds }
111
+
102
112
IF ${current_uptime } >= ${device_uptime }
103
113
Set Local Variable ${device_uptime } ${current_uptime }
104
114
ELSE
@@ -113,8 +123,9 @@ STB002.001 Verify if no unexpected boot errors appear in Linux logs
113
123
[Documentation] This test aims to verify that there are no unexpected
114
124
... error ,essages in Linux kernel logs.
115
125
Skip If not ${PLATFORM_STABILITY_CHECKING } STB002.001 not supported
126
+
116
127
Power On
117
- Boot Operating System ubuntu
128
+ Boot System Or From Connected Disk ubuntu
118
129
Login To Linux
119
130
Switch To Root User
120
131
Check Unexpected Boot Errors
0 commit comments