Peter Barker
2ae483cee0
autotest: stop uploading artifacts to autotest server
...
github action's CI is good at this
2021-07-30 11:32:59 +10:00
Peter Barker
7929122f49
autotest: improve AHRS trim test
2021-07-28 17:20:28 +10:00
Peter Barker
909decc5be
autotest: move wait_attitude up to common.py
2021-07-28 17:20:28 +10:00
Peter Barker
da3ff2c142
autotest: add test for live change of AHRS orientation
2021-07-27 17:28:09 +10:00
Peter Barker
04ddc9de03
autotest: correct order of progress vs action in set-param
2021-07-27 16:51:48 +10:00
Peter Barker
e1884bcd6e
autotest: run dumpstack/dumpcore on stuck SITL process
2021-07-27 16:51:48 +10:00
Peter Barker
eff4bc4cfb
autotest: drain pexpects in set_parameters loop
...
This loop doesn't self.mav.recv(), so the idle loop isn't called, so the
pexpects aren't drained. That can cause ArduPilot to block on stderr if
it is trying to print a stacktrace, for example
2021-07-21 17:05:17 +10:00
Peter Barker
43a4ea734f
autotest: add some diagnostics for missing processes
2021-07-21 15:50:50 +10:00
Peter Barker
571ae46b0f
Tools: split yaw-vehicle-for-mount-roi test out
2021-07-19 18:16:13 +10:00
Andrew Tridgell
618fa156c7
autotest: added --replay option to autotest
...
make for easy creation of EKF replay logs
2021-07-16 21:13:53 +10:00
Peter Barker
743ed05367
autotest: detect ap-*.core as we do core.* files
2021-07-08 15:46:07 +10:00
Andrew Tridgell
3a7075fc65
autotest: fixed config error loop test
2021-07-08 07:56:51 +10:00
Peter Barker
c1a5ca6060
autotest: add test to ensure we get a log if arming is forced
2021-07-04 08:54:54 +10:00
Peter Barker
85f36f957d
autotest: add force option to arm_vehicle
2021-07-04 08:54:54 +10:00
Peter Barker
4c173e01ef
autotest: increase number of parameter retries
...
sets were failing just after we uploaded very large numbers of
parameters. I'm guessing the parameter queue in ArduPilot is still
full.
2021-06-24 17:58:31 +10:00
Peter Barker
4bb91d1ec1
autotest: shift where we print which attempt we are doing
2021-06-24 17:58:31 +10:00
Peter Barker
b58e7bedaa
autotest: correct placement of not-alive-after-test message
...
This was misplaced with bad conflict resolution
2021-06-24 08:34:06 +10:00
Peter Barker
d6f619fb1a
autotest: emit 'attempt 1/3' when retrying set_parameter
...
Also reterm things in terms of attempts rather than retries
2021-06-24 08:30:03 +10:00
Peter Barker
99c7d3aabc
autotest: ensure no stray message listeners after test
2021-06-23 21:55:32 +10:00
Peter Barker
6a8ca9e45b
autotest: timeout in wallclock time in config error loop test
...
SYSTEM_TIME is not sent in config error loop
2021-06-23 21:55:32 +10:00
Peter Barker
210818cd6e
autotest: let arming failure messages get spit out
2021-06-17 21:01:23 +10:00
Peter Barker
cea0d7c971
autotest: move autotest tlog files into buildlogs directory
2021-06-11 22:14:11 +10:00
Peter Barker
14b2af84ab
autotest: break out a home_relative_loc_ne for getting a home-rel loc
2021-06-11 16:59:51 +10:00
Peter Barker
96e14d470a
autotest: retry SITL connect many times while running under GDB
...
Allows for easier debugging under gdb when checking startup code
2021-06-11 11:15:58 +10:00
Peter Barker
0b517cfc57
autotest: start GDB in tui mode by default
2021-06-10 20:52:48 +10:00
Peter Barker
79de738266
autotest: wait for a few seconds for arm-failure messages to appear
...
If prearms never come true then we try to arm the vehicle so it tells us
what is wrong. Since we no longer push statustexts hard, we have to
wait for the reasons to come out at normal clocked rates.
2021-06-09 14:13:54 +10:00
Peter Barker
6af6d2fc2a
autotest: add a progress message for looking for a message in a log
2021-06-09 14:13:31 +10:00
Peter Barker
6944ef6af1
autotest: fly each working Helicopter frame
2021-06-09 12:15:42 +10:00
yaapu
b14dcf1df5
Tools:autotest: updated FRSky SPort test to use new 2 byte data IDs
2021-06-02 17:33:15 +10:00
Peter Barker
8925c2830b
autotest: check fence upload/download when creating from locs
2021-06-01 15:54:59 +10:00
Peter Barker
3eb164fb6a
autotest: move script helper functions from rover to common
2021-05-14 13:21:36 +10:00
Peter Barker
3d562046da
autotest: add accuracy option to guided_achieve_heading
2021-05-14 13:21:36 +10:00
Peter Barker
9965f1a31d
autotest: add some helpers for local-position movement
2021-05-12 13:01:50 +10:00
Peter Barker
765889b827
autotest: don't send statustext during exception
...
During an exception we don't want to be trying to print these
2021-05-07 14:21:44 +10:00
Peter Barker
f78cf73726
autotest: don't fail completely if ArduPilot process dies
2021-05-07 12:22:11 +10:00
Peter Barker
9a13b5c9b6
autotest: add test for auxfunc triggering via script
2021-05-05 07:13:18 +10:00
Peter Barker
8fdfdebe55
autotest: pass sitl_commandline_customised up the context stack
...
We're running tests on the Callisto frame when we shouldn't in Copter as
the information was lost in nested Contexts.
We can only reset the SITL commandline at an actual Test level - if a
defaults file has been used then it is unclear as to what the state of
any parameter is in storage as we move between contexts
2021-05-01 17:22:36 +10:00
Peter Barker
c7c4c17c68
autotest: improve change_mode debug
2021-05-01 13:25:13 +10:00
Peter Barker
fc426e01c2
autotest: stop using start_test for things that aren't actually tests
...
start_test should only be used for top-level tests, not parts of
top-level tests
2021-04-28 13:53:46 +10:00
Peter Barker
30e8160aa1
autotest: sort logs before moving
...
Makes it easier to find last log in output.
Also removing pointless lamdaing of some functions
2021-04-21 13:16:24 +10:00
Peter Barker
0ee0228883
autotest: fix flapping fly-home-land-and-disarm
...
One of the tests just happened to be within acceptance radius of
waypoint 8 - so when we set that as a waypoint we never saw it actually
be our waypoint so the set_waypoint failed
2021-04-20 23:04:24 +10:00
Peter Barker
8643322f06
autotest: correct string we expect from MAVProxy
...
Was APM: now AP:
2021-04-20 14:08:12 +10:00
Peter Barker
c12d1938c2
autotest: add a test for button change for changing modes
2021-04-19 14:27:45 +10:00
Peter Barker
dfa342a79f
autotest: correct rc-values-good debug
2021-04-03 08:59:14 +11:00
Peter Barker
d2c00f7b26
autotest: ensure RC thread is killed after each run_test
...
Every run_test starts a thread. del is not being called. So clean it
up in the caller
2021-04-01 11:00:54 +11:00
Peter Barker
ba972b6b46
autotest: fix --map option
2021-03-31 16:30:25 +11:00
Peter Barker
e8f96efe72
autotest: wait for stats initialisation before rebooting
...
If the RTC time we reset parameters (STAT_RESET) is zero then we reset all parameters.
In SITL we only set that time if we see a GPS due to the AP_RTC RTC_TYPES parameter default bitmask value of 1
So if you reboot SITL fast enough while STAT_RESET is zero you can see that STAT_BOOTCNT does not increase. Easily reproducible in SITL; start with -w and type reboot in several times before SITL sees the GPS come up and you can see STAT_BOOTCNT doesn't increase.
Fix is to ensure STAT_RESET is non-zero before rebooting.
2021-03-31 13:33:39 +11:00
Peter Barker
240e2d6b28
autotest: correct pexpect handling of supplementary programs
2021-03-24 23:10:27 +11:00
Peter Barker
ae7b21843e
autotest: remove useless mavproxy set heartbeat directive
...
This has never actually worked:
2021-03-24T04:53:03.7594996Z AT-0040.3: Starting MAVProxy
2021-03-24T04:53:03.7595674Z PYTHONPATH: /__w/ardupilot/ardupilot/Tools/mavproxy_modules
2021-03-24T04:53:05.8106006Z Running: "mavproxy.py" "--master" "tcp:127.0.0.1:5762" "--aircraft" "test.ArduCopter" "--sitl=127.0.0.1:5502" "--streamrate=5" "--cmd="set heartbeat 8"" "--target-system=1" "--target-component=1" "--quadcopter" "--default-modules" "misc,terrain,wp,rally,fence,param,arm,mode,rc,cmdlong,output"
2021-03-24T04:53:05.8108569Z ERROR LOADING MAVNATIVE - falling back to python implementation
2021-03-24T04:53:05.8109340Z Connect tcp:127.0.0.1:5762 source_system=255
2021-03-24T04:53:05.8109962Z no script test.ArduCopter/mavinit.scr
2021-03-24T04:53:05.8110739Z Unknown command '"set heartbeat 8"'
2021-03-24 23:10:06 +11:00
Peter Barker
8bf1ac0347
autotest: fix and tidy the log download test
...
We were requesting past the end of the file
2021-03-24 14:46:48 +11:00