@@ -702,45 +702,37 @@ Get DUT To Start State
702
702
END
703
703
704
704
Turn On Power Supply
705
- ${pc } = Get Variable Value ${POWER_CTRL }
706
- IF 'sonoff' == '${pc } '
707
- ${state } = Sonoff On
708
- ELSE
709
- ${state } = Rte Relay Set on
710
- END
705
+ Rte Psu On
711
706
712
707
Power Cycle On
713
- [Documentation] Clears telnet buffer and perform full power cycle with
714
- ... RTE relay set to ON.
715
- [Arguments] ${power_button } =${FALSE }
708
+ [Documentation] Clears telnet buffer and performs full power cycle
709
+ ... by setting power supply to OFF, and then to ON. If platform needs
710
+ ... additional power button press, it will be used as well, so at the
711
+ ... end of this keyword platform starts booting. This is controlled via
712
+ ... the DEFAULT_POWER_STATE_AFTER_FAIL variable defined in platform config.
713
+
714
+ Variable Should Exist ${DEFAULT_POWER_STATE_AFTER_FAIL }
716
715
IF "${OPTIONS_LIB } "=="dcu" and "${POWER_CTRL } "=="none"
717
716
Execute Reboot Command
718
717
Sleep 5s
719
718
RETURN
720
719
END
720
+
721
721
Restore Initial DUT Connection Method
722
722
${pc } = Get Variable Value ${POWER_CTRL }
723
- IF 'sonoff' == '${pc } '
724
- Sonoff Power Cycle On
725
- ELSE IF 'obmcutil' == '${pc } '
723
+ IF 'obmcutil' == '${pc } '
726
724
OBMC Power Cycle On
727
725
ELSE
728
- Rte Relay Power Cycle On
729
- END
730
-
731
- IF ${power_button } Rte Power On
732
-
733
- Rte Relay Power Cycle On
734
- [Documentation] Clears telnet buffer and perform full power cycle with
735
- ... RTE relay set to ON.
736
- Rte Relay Set off
737
- Sleep 10
738
- TRY
739
- Telnet.Read
740
- EXCEPT
741
- Log Could not clear Telnet buffer
726
+ Rte Psu Off
727
+ Sleep 10
728
+ TRY
729
+ Read From Terminal
730
+ EXCEPT
731
+ Log Could not clear terminal buffer
732
+ END
733
+ Rte Psu On
742
734
END
743
- Rte Relay Set on
735
+ IF ' ${ DEFAULT_POWER_STATE_AFTER_FAIL } ' == 'Powered Off' Rte Power On
744
736
745
737
OBMC Power Cycle On
746
738
[Documentation] Clears obmc-console-client buffer and perform full power
@@ -754,78 +746,9 @@ OBMC Power Cycle On
754
746
Read From Terminal
755
747
Power On
756
748
757
- OBMC Power Cycle Off
758
- [Documentation] Clears obmc-console-client buffer and perform full power
759
- ... cycle with Chassis and Host State Control
760
- ${host_state } = Get Host State
761
- ${chassis_state } = Get Chassis Power State
762
- IF '${host_state.lower() } '=='on' or '${chassis_state.lower() } '=='on'
763
- Set Chassis Power State off
764
- Sleep 15s
765
- END
766
- Read From Terminal
767
-
768
- Sonoff Power Cycle On
769
- [Documentation] Clear telnet buffer and perform full power cycle with
770
- ... Sonoff
771
- Sonoff Off
772
- Sleep 10
773
- TRY
774
- Telnet.Read
775
- EXCEPT
776
- Log Could not clear Telnet buffer
777
- END
778
- Sonoff On
779
-
780
- Power Cycle Off
781
- [Documentation] Power cycle off power supply using the supported
782
- ... method.
783
- ${pc } = Get Variable Value ${POWER_CTRL }
784
- IF 'sonoff' == '${pc } '
785
- Sonoff Power Cycle Off
786
- ELSE IF 'obmcutil' == '${pc } '
787
- OBMC Power Cycle Off
788
- ELSE
789
- Rte Relay Power Cycle Off
790
- END
791
- Telnet.Close All Connections
792
- Serial Setup ${RTE_IP } ${RTE_S2_N_PORT }
793
-
794
- Rte Relay Power Cycle Off
795
- [Documentation] Performs full power cycle with RTE relay set to OFF.
796
- # sleep for DUT Start state in Suite Setup
797
- Sleep 1s
798
- ${result } = RTE Relay Get
799
- IF '${result } ' == 'on' Rte Relay off
800
-
801
- Sonoff Power Cycle Off
802
- Sonoff On
803
- Sonoff Off
804
-
805
- Get Relay State
806
- [Documentation] Returns the power relay state depending on the supported
807
- ... method.
808
- ${pc } = Get Variable Value ${POWER_CTRL }
809
- IF 'sonoff' == '${pc } '
810
- ${state } = Sonoff Get
811
- ELSE
812
- ${state } = RTE Relay Get
813
- END
814
- RETURN ${state }
815
-
816
- RTE Relay Get
817
- [Documentation] Returns the RTE relay state through REST API.
818
- ${state } = Rte Gpio Get 0
819
- RETURN ${state }
820
-
821
749
Get Power Supply State
822
750
[Documentation] Returns the power supply state.
823
- ${pc } = Get Variable Value ${POWER_CTRL }
824
- IF '${pc } '=='sonoff'
825
- ${state } = Sonoff Get
826
- ELSE
827
- ${state } = Get Relay State
828
- END
751
+ ${state } = Rte Psu Get
829
752
RETURN ${state }
830
753
831
754
Get Sound Devices Windows
0 commit comments