diff --git a/coin/instructions/vxworks_testrunner.yaml b/coin/instructions/vxworks_testrunner.yaml index 9a52520065c..2d1b29291f3 100644 --- a/coin/instructions/vxworks_testrunner.yaml +++ b/coin/instructions/vxworks_testrunner.yaml @@ -22,11 +22,17 @@ instructions: # qtest_in_vxworks_complete echo is used to detect test process completion as it will # be echoed after test process ends normally or crashes when normal log lines are not present. + # Check that emulator is functioning - echo "cmd echo \"health check\"" > /tmp/guest.in - sleep 0.5 - read -t 5 echoline /tmp/guest.in ) & pid=$! + ( sleep 5 && kill -HUP $pid ) 2>/dev/null & watcher=$! + wait $pid 2>/dev/null && pkill -HUP -P $watcher + + if [[ "$?" -eq "0" ]]; then + read -t 5 echoline