ardupilot/Tools/autotest
Peter Barker 8777d68ac1 autotest: drain self.mav while waiting on other link
In the short period of time it takes for us to get organised/draining mavlink connections, the ArduPilot process might block writing to the primary mavlink connection - in which case we'll never get the message we requested.

Should solve

2022-08-31T23:17:43.6904119Z AT-0227.6: waiting for a message - any message....
2022-08-31T23:17:43.6904958Z AT-0227.6: Received (ATTITUDE {time_boot_ms : 3146, roll : 0.00013471684360411018, pitch : -4.076504410477355e-05, yaw : -2.1274349689483643, rollspeed : 6.679168291157112e-05, pitchspeed : 3.297374496469274e-05, yawspeed : 9.125166684498254e-07})
2022-08-31T23:17:43.6905505Z AT-0227.6: Waiting for mission count of (3) from (1:1) to (243:250)
2022-08-31T23:17:43.6905909Z AT-0227.6: Asserted mission count (type=2) is 3 after 0.100000s
2022-08-31T23:17:43.6906252Z AT-0227.6: Get first item on new link
2022-08-31T23:17:43.6906620Z AT-0289.2: Received exception (Did not receive MISSION_ITEM_INT
2022-08-31T23:17:43.6907047Z Traceback (most recent call last):
2022-08-31T23:17:43.6907386Z   File "/__w/ardupilot/ardupilot/Tools/autotest/rover.py", line 3067, in test_rally
2022-08-31T23:17:43.6907719Z     m2 = self.get_mission_item_int_on_link(
2022-08-31T23:17:43.6908080Z   File "/__w/ardupilot/ardupilot/Tools/autotest/rover.py", line 2288, in get_mission_item_int_on_link
2022-08-31T23:17:43.6908469Z     raise NotAchievedException("Did not receive MISSION_ITEM_INT")
2022-08-31T23:17:43.6908841Z common.NotAchievedException: Did not receive MISSION_ITEM_INT
2022-08-31T23:17:43.6909118Z )
2022-08-31T23:17:43.6909468Z AT-0289.2: Exception caught: Did not receive MISSION_ITEM_INT
2022-11-09 09:17:08 +11:00
..
ArduCopter_Tests autotest: test landed state of copter during takeoff in auto mode 2022-09-10 21:53:23 +10:00
ArduPlane_Tests autotest: add test for quadplane booting in auto 2022-08-16 07:24:22 +10:00
ArduRover_Tests autotest: fixed GripperMission test in rover 2022-01-12 07:54:46 +11:00
ArduSub_Tests
Generic_Missions autotest: add load_generic_mission 2021-09-26 17:35:46 +10:00
XPlane
aircraft Tools: fix executable permission and trailing whitespace 2022-06-08 08:16:42 +09:00
default_params Tools: update plane-3d tune 2022-11-04 07:17:30 +11:00
jsb_sim
logger_metadata Tools: logger_metadata: remove useless shebang 2022-06-08 08:16:42 +09:00
models Tools: Update Callisto Model 2022-07-15 09:59:44 +09:00
param_metadata Tools: Add kg per cubic meter unit metadata 2022-09-20 15:24:48 +10:00
pysim autotest: added plane-3d model and parameters 2022-10-19 23:25:22 +11:00
template
tilecache/srtm Tools: autotest: tilecache: add required SRTM files 2022-08-16 11:12:44 +10:00
web
web-firmware Tools: filterTool: add pahse scale option 2022-08-16 12:02:54 +10:00
win_sitl
README autotest: remove APM references 2021-09-18 10:45:39 -05:00
__init__.py
antennatracker.py autotest: use reflection to collect test details 2022-09-10 18:27:27 +10:00
arducopter.py autotest: slow down specific tests so they pass 2022-10-22 15:14:55 +11:00
arduplane.py autotest: add tests for embedded defaults parsing 2022-10-13 14:38:30 +11:00
ardusub.py autotest: sub dive_manual update TSYS01 desired temperature 2022-10-18 10:05:31 +11:00
autotest.py autotest: fail if no steps supplied and not autotest server 2022-09-13 11:52:05 +10:00
balancebot.py autotest: remove disabled LogUpload test 2022-09-11 20:45:13 +10:00
bisect-helper.py Tools: bisect_helper.py: update submodules when bisecting build 2022-11-08 09:01:12 +11:00
build-with-disabled-features.py Tools: change AC_FENCE to AP_FENCE_ENABLED 2022-07-27 19:04:56 +10:00
check_autotest_speedup.py Tools: add a tool to help determine best speedup for autotest 2021-04-01 11:27:17 +11:00
common.py autotest: drain self.mav while waiting on other link 2022-11-09 09:17:08 +11:00
examples.py Tools: autotest: remove useless shebang 2022-06-08 08:16:42 +09:00
fakepos.py
fg_plane_view.bat Tools: fix executable permission and trailing whitespace 2022-06-08 08:16:42 +09:00
fg_plane_view.sh
fg_quad_view.bat Tools: fix executable permission and trailing whitespace 2022-06-08 08:16:42 +09:00
fg_quad_view.sh
helicopter.py autotest: remove disabled LogUpload test 2022-09-11 20:45:13 +10:00
junit.xml
locations.txt Tools: move Karuizawa location 2022-07-12 21:29:24 +09:00
quadplane.py autotest: add test for manual throttle control for ICEngine 2022-11-08 08:59:56 +11:00
rover.py autotest: drain self.mav while waiting on other link 2022-11-09 09:17:08 +11:00
run_in_terminal_window.sh Tools: change terminal to current dir if using osascript in run_in_terminal_window.sh 2022-05-02 11:28:12 +10:00
sailboat.py autotest: use reflection to collect test details 2022-09-10 18:27:27 +10:00
sim_vehicle.py Tools: fixed sim_vehicle.py with -n 2022-08-26 10:48:41 +10:00
swarminit.txt
test_build_options.py autotest: add option to test enabling one feature at a time 2022-10-11 10:50:13 +11:00

README

This is an automated test suite for ArduPilot