sim:tests: Disable UART input echo check in the robot script
Don't need to check the UART input in shodan_boot.robot
Change-Id: I7bcc7864b23f8ff88645a2c5dbada6f9b37b7be0
diff --git a/shodan_boot.robot b/shodan_boot.robot
index 1a76693..6e11c3c 100644
--- a/shodan_boot.robot
+++ b/shodan_boot.robot
@@ -6,6 +6,11 @@
# sim/tests/test.sh --debug sim/tests/shodan_boot.robot
${RUN_DEBUG} 0
+${WAIT_ECHO} true
+IF ${NO_UART_ECHO} == 1
+ ${WAIT_ECHO} false
+END
+
${LOG_TIMEOUT} 2
${DEBUG_LOG_TIMEOUT} 10
${ROOTDIR} ${CURDIR}/../..
@@ -56,13 +61,13 @@
Execute Command showAnalyzer "uart5-analyzer" ${UART5} Antmicro.Renode.Analyzers.LoggingUartAnalyzer
# Disable uart5 timestamp diff
Execute Command uart5-analyzer TimestampFormat None
- Write Line To Uart start ${app}
+ Write Line To Uart start ${app} waitForEcho=${WAIT_ECHO}
# NB: don't 'Wait For Line On Uart Bundle "${app}" started' as this races
# against the app-generated output that is waited for below
Uninstall App
[Arguments] ${app}
- Write Line To Uart stop ${app}
+ Write Line To Uart stop ${app} waitForEcho=${WAIT_ECHO}
Wait For Line On Uart Bundle "${app}" stopped
*** Test Cases ***
@@ -103,8 +108,7 @@
# Add UART5 virtual time so we can check the machine execution time
Execute Command uart5-analyzer TimestampFormat Virtual
IF ${RUN_DEBUG} == 1
- Write Line to Uart test_mlexecute anything mobilenet_v1_emitc_static
- Wait For Prompt On Uart ${PROMPT}
+ Write Line to Uart test_mlexecute anything mobilenet_v1_emitc_static waitForEcho=${WAIT_ECHO}
Wait For LogEntry "main returned: ", 0
# Test timer
@@ -177,7 +181,7 @@
Execute Command showAnalyzer "uart5-analyzer" ${UART5} Antmicro.Renode.Analyzers.LoggingUartAnalyzer
# Add UART5 virtual time so we can check the machine execution time
Execute Command uart5-analyzer TimestampFormat Virtual
- Write Line to Uart start mltest
+ Write Line to Uart start mltest waitForEcho=${WAIT_ECHO}
Wait For Line On Uart sdk_model_oneshot(nonexistent) returned Err(SDKNoSuchModel) (as expected)
# start oneshot
Wait For Line On Uart mobilenet_v1_emitc_static started
@@ -191,5 +195,5 @@
Wait For Line On Uart Model completed: mask 0b0001
END
Wait For Line On Uart DONE
- Write Line To Uart stop mltest
+ Write Line To Uart stop mltest waitForEcho=${WAIT_ECHO}
Wait For Line On Uart Bundle "mltest" stopped
diff --git a/test.sh b/test.sh
index ce396ac..df115f6 100755
--- a/test.sh
+++ b/test.sh
@@ -34,6 +34,14 @@
)
fi
+if [[ $1 == "--no-echo-check" ]]; then
+ echo "Disable UART input echo check"
+ shift
+ ARGS+=(
+ --variable "NO_UART_ECHO:1"
+ )
+fi
+
ARGS+=(
--exclude "skip_${DETECTED_OS}"
-r "$(get_path "${TESTS_RESULTS}")"