Tools: autotest: remove racey mavproxy.expect

The autopilot could well have emitted the statustext before we
start to expect() it
This commit is contained in:
Peter Barker 2018-02-13 12:11:39 +11:00 committed by Andrew Tridgell
parent 44a1553535
commit aeb99c675b

View File

@ -958,9 +958,6 @@ def fly_mission(mavproxy, mav, height_accuracy=-1.0, target_altitude=None):
mavproxy.send('switch 4\n') # auto mode
wait_mode(mav, 'AUTO')
ret = wait_waypoint(mav, 0, num_wp-1, timeout=500)
expect_msg = "Reached command #%u" % (num_wp-1)
if (ret):
mavproxy.expect(expect_msg)
progress("test: MISSION COMPLETE: passed=%s" % ret)
# wait here until ready
mavproxy.send('switch 5\n') # loiter mode