diff --git a/keywords.robot b/keywords.robot index 7192a7e7..74f70615 100644 --- a/keywords.robot +++ b/keywords.robot @@ -212,7 +212,7 @@ Open Connection And Log In Check Provided Ip # FIXME: some stands do not have RTE connected, this should be better handled # by reworking variables.robot - IF '${MANUFACTURER}' != 'QEMU' + IF '${MANUFACTURER}' != 'QEMU' and '${CONFIG}' != 'no-rte' SSHLibrary.Set Default Configuration timeout=60 seconds SSHLibrary.Open Connection ${RTE_IP} prompt=~# SSHLibrary.Login ${USERNAME} ${PASSWORD} @@ -531,7 +531,9 @@ Prepare Test Suite ELSE Import Resource ${CURDIR}/platform-configs/${CONFIG}.robot END - IF '${MANUFACTURER}' != 'QEMU' Import Osfv Libraries + IF '${MANUFACTURER}' != 'QEMU' and '${CONFIG}' != 'no-rte' + Import Osfv Libraries + END IF '${DUT_CONNECTION_METHOD}' == 'SSH' Prepare To SSH Connection ELSE IF '${DUT_CONNECTION_METHOD}' == 'Telnet' @@ -587,6 +589,8 @@ Prepare To Serial Connection Open Connection And Log In IF '${MANUFACTURER}' == 'QEMU' Set Global Variable ${PLATFORM} qemu + ELSE IF '${CONFIG}' == 'no-rte' + Set Global Variable ${PLATFORM} ${CONFIG} ELSE ${platform}= Get Current RTE Param platform Set Global Variable ${PLATFORM} @@ -687,7 +691,7 @@ Get DUT To Start State [Documentation] Clears telnet buffer and get Device Under Test to start ... state (RTE Relay On). Telnet.Read - IF '${MANUFACTURER}' != 'QEMU' + IF '${MANUFACTURER}' != 'QEMU' and '${CONFIG}' != 'no-rte' ${result}= Get Power Supply State IF '${result}'=='off' Turn On Power Supply END diff --git a/platform-configs/no-rte.robot b/platform-configs/no-rte.robot new file mode 100644 index 00000000..60d685bd --- /dev/null +++ b/platform-configs/no-rte.robot @@ -0,0 +1,7 @@ +*** Settings *** +Resource include/default.robot + + +*** Variables *** +${INITIAL_DUT_CONNECTION_METHOD}= Telnet +${DUT_CONNECTION_METHOD}= ${INITIAL_DUT_CONNECTION_METHOD}