-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathraptor-cs_talos2.robot
434 lines (406 loc) · 21.2 KB
/
raptor-cs_talos2.robot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
*** Variables ***
${DUT_CONNECTION_METHOD}= open-bmc
${PAYLOAD}= petitboot
${FLASH_SIZE}= ${64*1024*1024}
${MANUFACTURER}= Raptor Engineering, LLC
${CPU}= IBM POWER9 v2 CPU (4-Core) CP9M31
${DEF_CORES_PER_SOCKET}= 4
${DEF_THREADS_PER_CORE}= 4
${DEF_THREADS_TOTAL}= 32
${DEF_ONLINE_CPU}= 0-31
${DEF_SOCKETS}= 2
${OPEN_BMC_USERNAME}= root
${OPEN_BMC_PASSWORD}= openpower
${OPEN_BMC_ROOT_PROMPT}= root@talos:~#
${FLASH_VERIFY_METHOD}= none
${POWER_CTRL}= obmcutil
${AUTO_BOOT_TIME_OUT_DEFAULT_VALUE}= ${TBD}
${LAPTOP_EC_SERIAL_WORKAROUND}= ${FALSE}
# Platform flashing flags
# Temporary parameter - we are not able to use the Hardware matrix
@{ATTACHED_USB}= ${USB_LIVE}
# Supported test environments
${TESTS_IN_FIRMWARE_SUPPORT}= ${TRUE}
${TESTS_IN_HEADS_SUPPORT}= ${TRUE}
${TESTS_IN_UBUNTU_SUPPORT}= ${FALSE}
${TESTS_IN_DEBIAN_SUPPORT}= ${TRUE}
${TESTS_IN_WINDOWS_SUPPORT}= ${FALSE}
# Regression test flags
${DASHARO_SECURITY_MENU_SUPPORT}= ${FALSE}
${DASHARO_USB_MENU_SUPPORT}= ${FALSE}
${DASHARO_NETWORKING_MENU_SUPPORT}= ${FALSE}
${DASHARO_INTEL_ME_MENU_SUPPORT}= ${FALSE}
${DASHARO_CHIPSET_MENU_SUPPORT}= ${FALSE}
${DASHARO_POWER_MGMT_MENU_SUPPORT}= ${FALSE}
${DASHARO_PCI_PCIE_MENU_SUPPORT}= ${FALSE}
${DASHARO_PCIE_REBAR_SUPPORT}= ${FALSE}
${DASHARO_MEMORY_MENU_SUPPORT}= ${FALSE}
# Test module: dasharo-compatibility
${BASE_PORT_BOOTBLOCK_SUPPORT}= ${TRUE}
${BASE_PORT_ROMSTAGE_SUPPORT}= ${TRUE}
${BASE_PORT_POSTCAR_SUPPORT}= ${FALSE}
${BASE_PORT_RAMSTAGE_SUPPORT}= ${TRUE}
${BASE_PORT_ALLOCATOR_V4_SUPPORT}= ${FALSE}
${PETITBOOT_PAYLOAD_SUPPORT}= ${FALSE}
${HEADS_PAYLOAD_SUPPORT}= ${TRUE}
${CUSTOM_BOOT_MENU_KEY_SUPPORT}= ${FALSE}
${CUSTOM_SETUP_MENU_KEY_SUPPORT}= ${FALSE}
${CUSTOM_NETWORK_BOOT_ENTRIES_SUPPORT}= ${FALSE}
${COREBOOT_FAN_CONTROL_SUPPORT}= ${FALSE}
${INTERNAL_LCD_DISPLAY_SUPPORT}= ${FALSE}
${EXTERNAL_HDMI_DISPLAY_SUPPORT}= ${FALSE}
${EXTERNAL_DISPLAY_PORT_SUPPORT}= ${FALSE}
${EC_AND_SUPER_IO_SUPPORT}= ${FALSE}
${CUSTOM_LOGO_SUPPORT}= ${FALSE}
${USB_DISKS_DETECTION_SUPPORT}= ${FALSE}
${USB_KEYBOARD_DETECTION_SUPPORT}= ${FALSE}
${USB_CAMERA_DETECTION_SUPPORT}= ${FALSE}
${USB_TYPE_C_DISPLAY_SUPPORT}= ${FALSE}
${UEFI_SHELL_SUPPORT}= ${FALSE}
${UEFI_COMPATIBLE_INTERFACE_SUPPORT}= ${FALSE}
${IPXE_BOOT_SUPPORT}= ${FALSE}
${NETBOOT_UTILITIES_SUPPORT}= ${FALSE}
${NVME_DISK_SUPPORT}= ${FALSE}
${SD_CARD_READER_SUPPORT}= ${FALSE}
${WIRELESS_CARD_SUPPORT}= ${FALSE}
${WIRELESS_CARD_WIFI_SUPPORT}= ${FALSE}
${WIRELESS_CARD_BLUETOOTH_SUPPORT}= ${FALSE}
${MINI_PC_IE_SLOT_SUPPORT}= ${FALSE}
${NVIDIA_GRAPHICS_CARD_SUPPORT}= ${FALSE}
${AUDIO_SUBSYSTEM_SUPPORT}= ${FALSE}
${SUSPEND_AND_RESUME_SUPPORT}= ${FALSE}
${SERIAL_NUMBER_VERIFICATION}= ${FALSE}
${SERIAL_FROM_MAC}= ${FALSE}
${FIRMWARE_NUMBER_VERIFICATION}= ${FALSE}
${FIRMWARE_FROM_BINARY}= ${FALSE}
${PRODUCT_NAME_VERIFICATION}= ${FALSE}
${RELEASE_DATE_VERIFICATION}= ${FALSE}
${MANUFACTURER_VERIFICATION}= ${FALSE}
${VENDOR_VERIFICATION}= ${FALSE}
${FAMILY_VERIFICATION}= ${FALSE}
${TYPE_VERIFICATION}= ${FALSE}
${HARDWARE_WP_SUPPORT}= ${FALSE}
${DOCKING_STATION_USB_SUPPORT}= ${FALSE}
${DOCKING_STATION_KEYBOARD_SUPPORT}= ${FALSE}
${DOCKING_STATION_USB_C_CHARGING_SUPPORT}= ${FALSE}
${DOCKING_STATION_DETECT_SUPPORT}= ${FALSE}
${DOCKING_STATION_AUDIO_SUPPORT}= ${FALSE}
${EMMC_SUPPORT}= ${FALSE}
${DTS_SUPPORT}= ${FALSE}
${FIRMWARE_BUILDING_SUPPORT}= ${FALSE}
${CPU_TESTS_SUPPORT}= ${FALSE}
${DOCKING_STATION_NET_INTERFACE}= ${FALSE}
${DOCKING_STATION_HDMI}= ${FALSE}
${DOCKING_STATION_DISPLAY_PORT}= ${FALSE}
${FAN_SPEED_MEASURE_SUPPORT}= ${FALSE}
${DEVICE_TREE_SUPPORT}= ${TRUE}
${DOCKING_STATION_SD_CARD_READER_SUPPORT}= ${FALSE}
${UPLOAD_ON_USB_SUPPORT}= ${FALSE}
${RESET_TO_DEFAULTS_SUPPORT}= ${FALSE}
${MEMORY_PROFILE_SUPPORT}= ${FALSE}
${DEFAULT_POWER_STATE_AFTER_FAIL}= Powered Off
${ESP_SCANNING_SUPPORT}= ${FALSE}
${L3_CACHE_SUPPORT}= ${TRUE}
# Test module: dasharo-security
${TPM_SUPPORT}= ${TRUE}
${VERIFIED_BOOT_SUPPORT}= ${FALSE}
${VERIFIED_BOOT_POPUP_SUPPORT}= ${FALSE}
${MEASURED_BOOT_SUPPORT}= ${FALSE}
${SECURE_BOOT_SUPPORT}= ${FALSE}
${SECURE_BOOT_DEFAULT_STATE}= Disabled
${USB_STACK_SUPPORT}= ${FALSE}
${USB_MASS_STORAGE_SUPPORT}= ${FALSE}
${TCG_OPAL_DISK_PASSWORD_SUPPORT}= ${FALSE}
${BIOS_LOCK_SUPPORT}= ${FALSE}
${SMM_WRITE_PROTECTION_SUPPORT}= ${FALSE}
${WIFI_BLUETOOTH_CARD_SWITCH_SUPPORT}= ${FALSE}
${CAMERA_SWITCH_SUPPORT}= ${FALSE}
${EARLY_BOOT_DMA_SUPPORT}= ${FALSE}
${UEFI_PASSWORD_SUPPORT}= ${FALSE}
# Test module: dasharo-performance
${SERIAL_BOOT_MEASURE}= ${FALSE}
${CPU_FREQUENCY_MEASURE}= ${TRUE}
${CPU_TEMPERATURE_MEASURE}= ${FALSE}
${PLATFORM_STABILITY_CHECKING}= ${FALSE}
${CUSTOM_FAN_CURVE_SILENT_MODE_SUPPORT}= ${FALSE}
${CUSTOM_FAN_CURVE_PERFORMANCE_MODE_SUPPORT}= ${FALSE}
# Test module: dasharo-stability
${M2_WIFI_SUPPORT}= ${FALSE}
${NVME_DETECTION_SUPPORT}= ${FALSE}
${USB_TYPE-A_DEVICES_DETECTION_SUPPORT}= ${FALSE}
${TPM_DETECT_SUPPORT}= ${TRUE}
# Supported OS installation variants
# Test cases iterations number
# Booting OS from USB stick test cases
${BOOT_FROM_USB_ITERATIONS_NUMBER}= 0
# Sticks detection test cases
${USB_DETECTION_ITERATIONS_NUMBER}= 0
# Other platform flags and counters
# Cooling procedure iterations
${COOLING_PROCEDURE_ITERATIONS}= 0
# Stability tests duration in minutes
${STABILITY_TEST_DURATION}= 15
# Interval between the following readings in stability tests
${STABILITY_TEST_MEASURE_INTERVAL}= 5
# Frequency measure test duration
${FREQUENCY_TEST_DURATION}= 60
# Interval between the following readings in frequency measure tests
${FREQUENCY_TEST_MEASURE_INTERVAL}= 1
# Temperature measure test duration
${TEMPERATURE_TEST_DURATION}= 3600
# Interval between the following readings in temperature measure tests
${TEMPERATURE_TEST_MEASURE_INTERVAL}= 1
# Fan control measure tests duration in minutes
# Interval between the following readings in fan control tests
# Custom fan curve tests duration in minutes
${CUSTOM_FAN_CURVE_TEST_DURATION}= 30
# Interval between the following readings in custom fan curve tests
${CUSTOM_FAN_CURVE_MEASURE_INTERVAL}= 1
# Maximum fails during during performing test suite usb-boot.robot
${ALLOWED_FAILS_USB_BOOT}= 0
# Maximum fails during during performing test suite usb-detect.robot
${ALLOWED_FAILS_USB_DETECT}= 0
# Number of Ubuntu booting iterations
# Number of Debian booting iterations
# Number of Ubuntu Server booting iterations
# Number of Proxmox VE booting iterations
# Number of pfSense (serial output) booting iterations
# Number of pfSense (VGA output) booting iterations
# Number of OPNsense (serial output) booting iterations
# Number of OPNsense (VGA output) booting iterations
# Number of FreeBSD booting iterations
# Number of Windows booting iterations
# Maximum fails during performing booting OS tests
# Maximum fails during performing docking station detect tests
${ALLOWED_DOCKING_STATION_DETECT_FAILS}= 0
# Number of iterations in stability detection tests
${STABILITY_DETECTION_COLDBOOT_ITERATIONS}= 2
${STABILITY_DETECTION_WARMBOOT_ITERATIONS}= 2
${STABILITY_DETECTION_REBOOT_ITERATIONS}= 5
${STABILITY_DETECTION_SUSPEND_ITERATIONS}= 5
*** Keywords ***
Get Firmware Version From Coreboot File
[Documentation] Return firmware version from binary file sent via SSH to
... RTE system. Takes binary file path as an argument.
[Arguments] ${binary_path}
${ecc}= Get Binary File ${binary_path}
${no_ecc}= Evaluate re.sub(rb'(?s)(........).', rb'\\1', $ecc)
Create Binary File /tmp/test.rom ${no_ecc}
${output}= Run strings /tmp/test.rom
Remove File /tmp/test.rom
${firmware_version_file}= Get Regexp Matches
... ${output}
... (raptor-cs_talos-2_v|Heads-v)\\d{1,}\.\\d{1,}\.\\d{1,}\
RETURN ${firmware_version_file[-1]}
Get Firmware Version From Bootlogs
[Documentation] Return firmware version from the platform booting logs.
${output}= Read From Terminal Until bootblock starting
${firmware_version_bootblock}= Get Regexp Matches
... ${output}
... (raptor-cs_talos-2_v|Heads-v)\\d{1,}\.\\d{1,}\.\\d{1,}\
${output}= Read From Terminal Until romstage starting
${firmware_version_romstage}= Get Regexp Matches
... ${output}
... (raptor-cs_talos-2_v|Heads-v)\\d{1,}\.\\d{1,}\.\\d{1,}\
# Platform may hang if interrupted at wrong time by next test, so let it boot past Skiboot
Read From Terminal Until Jumping to boot code
Read From Terminal Until INIT: Starting kernel at
Sleep 5s
RETURN ${firmware_version_bootblock[-1]} ${firmware_version_romstage[-1]}
Set Platform Power State
[Documentation] Keyword allows to set platform power state. As platform
... power state is understood whether the platform is connected to the
... power supply. If the platform power state is off, obmc connection
... will not be established.
${result}= Sonoff Get
IF '${result}'=='low'
Sonoff Power On
Sleep 120s
END
Open OBMC Service Connection
[Documentation] Keyword allows to open second connection to the OBMC for
... performing service procedures: power controlling and platform flashing.
${power_ctrl_connection}= SSHLibrary.Open Connection ${DEVICE_IP} prompt=${OPEN_BMC_ROOT_PROMPT}
SSHLibrary.Switch Connection ${power_ctrl_connection}
SSHLibrary.Login ${OPEN_BMC_USERNAME} ${OPEN_BMC_PASSWORD}
Set DUT Response Timeout 300s
Close OBMC Service Connection
[Documentation] Keyword allows to close service connection used for
... platform flashing and controlling platform power state.
SSHLibrary.Close Connection
SSHLibrary.Switch Connection ${1}
Set Chassis Power State
[Documentation] Keyword allows to set chassis power state. If the
... chassis power state is off, platform might stuck during the booting
... process. The following solution is temporary - at this point, the
... API command for changing Chassis settings is not working.
[Arguments] ${requested_chassis_state}
Open OBMC Service Connection
IF '${requested_chassis_state}'=='off'
Write Into Terminal obmcutil chassisoff
Sleep 60s
${chassis_state}= Get Chassis Power State
Should Be True '${chassis_state}' == 'Off'
ELSE IF '${requested_chassis_state}'=='on'
Write Into Terminal obmcutil chassison
ELSE
FAIL \nUnknown requested power state:${requested_chassis_state}
END
Close OBMC Service Connection
Power On
[Documentation] Keyword sets Device Under Test into Power On state using
... openbmc-test-automation library and opens console client.
... Implementation must be compatible with the theory of
... operation of a specific platform.
Variable Should Exist ${OPENBMC_HOST}
Set Global Variable ${AUTH_URI} https://${OPENBMC_HOST}${AUTH_SUFFIX}
${host_state}= Get Host State
IF '${host_state}' != 'Off' Initiate Host PowerOff
${host_state}= Get Host State
Should Be True '${host_state}' == 'Off'
# Flush any output from previous boot
Read From Terminal
Initiate Host Boot 0
Turn On Host With Obmcutil
[Documentation] Keyword allows to turn the host system on by using built
... into OpenBMC service to control platform state.
Write Into Terminal obmcutil chassison
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Write Into Terminal obmcutil poweron
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Turn Off Host With Obmcutil
[Documentation] Keyword allows to turn the host system off by using built
... into OpenBMC service to control platform state.
Write Into Terminal obmcutil chassisoff
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Write Into Terminal obmcutil poweroff
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Reset Mboxd
[Documentation] Keyword allows to reset mboxd service. This operation
... is necessary to erase temporarily mounted images.
Write Into Terminal systemctl stop mboxd
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Write Into Terminal systemctl start mboxd
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Read Talos2 Firmware From OpenBMC
[Documentation] Keyword allows to read device's current firmware. The
... read firmware is placed on the OpenBMC in /tmp folder
Write Into Terminal pflash -P HBB -r /tmp/hbb.bin
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Write Into Terminal pflash -P HBI -r /tmp/hbi.bin
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Flash Talos2 Firmware From OpenBMC
[Documentation] Keyword flashes the board with uploaded firmware on
... OpenBMC.
[Arguments] ${bootblock_file} ${coreboot_file}
Open OBMC Service Connection
SCP.Open Connection ${DEVICE_IP} username=${OPEN_BMC_USERNAME} password=${OPEN_BMC_PASSWORD}
SCP.Put File ${bootblock_file} /tmp/bootblock.rom
SCP.Put File ${coreboot_file} /tmp/coreboot.rom
SCP.Close Connection
Turn Off Host With Obmcutil
Reset Mboxd
Write Into Terminal pflash -f -e -P HBB -p /tmp/bootblock.rom
Read From Terminal Until Erasing...
Read From Terminal Until 100%
Read From Terminal Until Programming & Verifying..
Read From Terminal Until 100%
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Write Into Terminal pflash -f -e -P HBI -p /tmp/coreboot.rom
Read From Terminal Until Erasing...
Read From Terminal Until 100%
Read From Terminal Until Programming & Verifying..
Read From Terminal Until 100%
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Close OBMC Service Connection
Flash Petitboot From OpenBMC
[Documentation] Keyword flashes the board with Petitboot system.
[Arguments] ${bootblock_file} ${coreboot_file} ${pnor_file}
Open OBMC Service Connection
SCP.Open Connection ${DEVICE_IP} username=${OPEN_BMC_USERNAME} password=${OPEN_BMC_PASSWORD}
SCP.Put File ${bootblock_file} /tmp/bootblock.rom
SCP.Put File ${coreboot_file} /tmp/coreboot.rom
SCP.Put File ${pnor_file} /tmp/talos.pnor
SCP.Close Connection
Turn Off Host With Obmcutil
Reset Mboxd
Write Into Terminal pflash -f -P HBB -p /tmp/bootblock.rom -F /tmp/talos.pnor
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Write Into Terminal pflash -f -P HBI -p /tmp/coreboot.rom -F /tmp/talos.pnor
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Write Into Terminal pflash -f -E -p /tmp/talos.pnor
Read From Terminal Until Erasing...
Read From Terminal Until Programming & Verifying...
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Close OBMC Service Connection
Flash Heads From OpenBMC
[Documentation] Keyword flashes BOOTKERNEL partition to install Heads.
[Arguments] ${bootblock_file} ${coreboot_file} ${z_image_file}
${heads_already_flashed}= Get Variable Value ${HEADS_ALREADY_FLASHED} ${FALSE}
IF ${heads_already_flashed} RETURN
Open OBMC Service Connection
SCP.Open Connection ${DEVICE_IP} username=${OPEN_BMC_USERNAME} password=${OPEN_BMC_PASSWORD}
SCP.Put File ${bootblock_file} /tmp/bootblock.rom
SCP.Put File ${coreboot_file} /tmp/coreboot.rom
SCP.Put File ${z_image_file} /tmp/zImage.bundled
SCP.Close Connection
Turn Off Host With Obmcutil
Reset Mboxd
Write Into Terminal pflash -f -e -P HBB -p /tmp/bootblock.rom
Read From Terminal Until Erasing...
Read From Terminal Until Programming & Verifying...
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Write Into Terminal pflash -f -e -P HBI -p /tmp/coreboot.rom
Read From Terminal Until Erasing...
Read From Terminal Until Programming & Verifying...
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Write Into Terminal pflash -f -e -P BOOTKERNEL -p /tmp/zImage.bundled
Read From Terminal Until Erasing...
Read From Terminal Until Programming & Verifying...
Read From Terminal Until ${OPEN_BMC_ROOT_PROMPT}
Close OBMC Service Connection
Set Global Variable ${HEADS_ALREADY_FLASHED} ${TRUE}
Check TPM PCRs Correctness
[Documentation] Keyword allows to checking the TPM PCRs correctness.
... Implementation of the keyword depends on platform specification, for
... Talos 2 it is as follows:
... -> PCRs 0 - 7 values should not be equal zeros,
... -> PCRs 0 and 1 should have the same values. We call them
... "capped values",
... -> PCRs 2 and 3 values should not be the same as "capped values",
... -> PCRs 4 and 5 values should not be the same as "capped values",
... -> PCRs 6 and 7 values depend on current state of Heads, skip checks.
[Arguments] ${tpm_pcrs}
${number_of_pcrs}= Get Length ${tpm_pcrs}
FOR ${iteration} IN RANGE 0 8
TRY
Should Be True '${tpm_pcrs[${iteration}][8:]}'!='${TPM_PCR_ZERO_PATTERN}'
EXCEPT
FAIL \n PCR-${iteration} has incorrect value: ${tpm_pcrs[${iteration}]}
END
END
IF '${tpm_pcrs[0][8:]}'!='${tpm_pcrs[1][8:]}'
FAIL \nValues for PCRs 0 and 1 are not the same!
END
IF '${tpm_pcrs[0][8:]}'=='${tpm_pcrs[2][8:]}'
FAIL \nValue for PCR 2 is the same as capped values!
END
IF '${tpm_pcrs[0][8:]}'=='${tpm_pcrs[3][8:]}'
FAIL \nValue for PCR 3 is the same as capped values!
END
IF '${tpm_pcrs[0][8:]}'=='${tpm_pcrs[4][8:]}'
FAIL \nValue for PCR 4 is the same as capped values!
END
IF '${tpm_pcrs[0][8:]}'=='${tpm_pcrs[5][8:]}'
FAIL \nValue for PCR 5 is the same as capped values!
END
Check TPM PCRs Correctness Between Subsequent Boots
[Documentation] Keyword allows to checking the TPM PCRs correctness
... between the subsequent boot procedures. Values from each PCR should
... be the same across all boot types.
[Arguments] ${pcrs_subsequent_boots}
${list}= Remove Duplicates ${pcrs_subsequent_boots}
${length}= Get Length ${list}
IF ${length}!=1
FAIL \nPCR values have been changed between subsequent boots!
END