Skip to content

Commit 6eb3d7b

Browse files
committed
keywords.robot: add suport for checking power LED
Signed-off-by: Filip Lewiński <[email protected]>
1 parent 76ccdd9 commit 6eb3d7b

File tree

6 files changed

+24
-2
lines changed

6 files changed

+24
-2
lines changed

keywords.robot

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,18 @@ Power Cycle On
745745
END
746746
IF '${DEFAULT_POWER_STATE_AFTER_FAIL}' == 'Powered Off' Rte Power On
747747

748+
IF '${CHECK_POWER_LED_SUPPORT}' == '${TRUE}'
749+
FOR ${i} IN RANGE 5
750+
${out}= Rte Check Power Led
751+
IF '${out}' == 'high' RETURN
752+
Sleep 1s
753+
END
754+
IF '${out}' != 'high'
755+
FAIL Power LED didn't light up! Setup needs manual verification,
756+
... or Power State After Power Failure is set incorrectly.
757+
END
758+
END
759+
748760
OBMC Power Cycle On
749761
[Documentation] Clears obmc-console-client buffer and perform full power
750762
... cycle with Chassis and Host State Control

platform-configs/include/default.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ ${INTERNAL_PROGRAMMER_CHIPNAME}= "Opaque flash chip"
2929
${FLASHING_METHOD}= external
3030
${SNIPEIT}= yes
3131
${SEABIOS_BOOT_DEVICE}= ${EMPTY}
32+
${CHECK_POWER_LED_SUPPORT}= ${FALSE}
3233

3334
# See: https://github.com/Dasharo/dasharo-issues/issues/614
3435
${LAPTOP_EC_SERIAL_WORKAROUND}= ${FALSE}

platform-configs/include/pcengines.robot

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ Resource ../../keys.robot
66
*** Variables ***
77
${INITIAL_DUT_CONNECTION_METHOD}= Telnet
88
${DUT_CONNECTION_METHOD}= ${INITIAL_DUT_CONNECTION_METHOD}
9-
${PAYLOAD}= tianocore
9+
${BIOS_LIB}= seabios
10+
${FW_STRING}= F10
11+
${SEABIOS_BOOT_DEVICE}= 4
1012
${RTE_S2_N_PORT}= 13541
1113
${FLASH_SIZE}= ${8*1024*1024}
1214
${FLASH_LENGTH}= ${TBD}
@@ -102,3 +104,8 @@ ${USB_TYPE-A_DEVICES_DETECTION_SUPPORT}= ${TRUE}
102104

103105
# Test module: trenchboot
104106
${TRENCHBOOT_SUPPORT}= ${TRUE}
107+
${CHECK_POWER_LED_SUPPORT}= ${TRUE}
108+
109+
*** Keywords ***
110+
Power On
111+
Power On Default

platform-configs/include/protectli-common.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ${CPU}= ${TBD}
2020
${POWER_CTRL}= RteCtrl
2121
${FLASH_VERIFY_METHOD}= tianocore-shell
2222
${FLASH_VERIFY_OPTION}= UEFI Shell
23+
${CHECK_POWER_LED_SUPPORT}= ${TRUE}
2324

2425
${DMIDECODE_SERIAL_NUMBER}= N/A
2526
${DMIDECODE_MANUFACTURER}= Protectli

platform-configs/minnowboard-turbot.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ ${TESTS_IN_WINDOWS_SUPPORT}= ${FALSE}
3333

3434
# Regression test flags
3535
${CUSTOM_BOOT_MENU_KEY_SUPPORT}= ${TRUE}
36+
${CHECK_POWER_LED_SUPPORT}= ${TRUE}
3637

3738

3839
*** Keywords ***

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ MarkupSafe==2.1.5
2222
mdurl==0.1.2
2323
nodeenv==1.8.0
2424
oauth2client==4.1.3
25-
osfv @ git+https://github.com/Dasharo/osfv-scripts.git@36a030eb006391c3761c25d6972036a5a34fb73b#subdirectory=osfv_cli
25+
osfv @ git+https://github.com/Dasharo/osfv-scripts.git@solve-pwon#subdirectory=osfv_cli
2626
paramiko==3.4.0
2727
pathspec==0.9.0
2828
pexpect==4.9.0

0 commit comments

Comments
 (0)