Julian Kent
435c2fe438
Fix rarely flakey test on Github Actions
2020-07-15 09:50:58 -04:00
Julian Oes
5f2abb66a4
mavsdk_tests: add workaround to prevent failsafe
...
This workaround should fix the test failure where we disarm before
taking off because we accidentally switched to failsafe mode right
before taking off because we were still in Manual mode and not Hold yet.
2020-07-15 09:38:06 -04:00
Julian Oes
4ad7ea6c1a
mavsdk_tests: increase the poll time resolution
...
With only 10 steps for e.g. 60 seconds we are likely to miss updates.
2020-07-15 09:38:06 -04:00
Julian Kent
78ff7c608f
Expand tracking error for straight line test
2020-07-14 11:34:14 +02:00
Julian Kent
14e2603bc4
Pull out matrix math primitives into anon functions
2020-07-14 11:34:14 +02:00
Julian Kent
6ce2769342
Pull out point-to-line distance calc, getting local mission coords
2020-07-14 11:34:14 +02:00
Julian Kent
ff4be5d815
Set rate when subscribing to velocity, specify units
2020-07-14 11:34:14 +02:00
Julian Kent
e6c5771c59
Add 'corridor check' which makes sure 3D tracking is along mission
2020-07-14 11:34:14 +02:00
Julian Kent
db361d7a59
Add straight-line MAVSDK test
2020-07-14 11:34:14 +02:00
Matthias Grob
480cd5ed4e
mavsdk_tests: load all os environment variables for gazebo client
...
such that OpenGL options are also used for mavsdk_tests when the GUI
is enabled.
2020-07-09 16:43:34 +02:00
Julian Oes
620916e4c1
mavsdk_tests: add test back in
...
This failed with other frames but seems to pass with iris and
standard_vtol.
2020-06-24 10:44:56 -04:00
Julian Oes
5e21eb3b78
mavsdk_test: remove flaky tests
...
Tests for both of these models did not pass for me locally. Therefore,
I'm removing them for now. It's up to the stakeholders of these models
to add them again.
2020-06-24 10:44:56 -04:00
Daniel Agar
43fdc770c7
mavsdk_tests: temporarily disable offboard position control test
2020-06-22 13:04:39 -04:00
TSC21
bc2b118e48
mavsdk_tests: add iris_dual_gps tests
2020-06-22 12:46:40 -04:00
JaeyoungLim
59c70a5811
Add plane_catapult test for testing hand/catapult launch for fw
...
This adds the plane_catapult model to the test for testing fw hand /catapult takeoff
2020-06-21 11:10:33 +01:00
Daniel Agar
3092d9e1f9
github actions run SITL tests in parallel
...
- temporarily disable iris dual gps
2020-06-20 17:44:57 -04:00
TSC21
24ae8f601d
mavsdk_tests: add iris_dual_gps to the test pipeline
2020-06-16 13:03:44 +01:00
Julian Oes
be4e253e63
mavsdk_tests: bump library from v0.24.0 to v0.27.0
2020-06-11 15:18:57 +02:00
Julian Oes
9b2527549b
mavsdk_tests: relax timeout for offboard goto
...
This probably makes sense because we ask for more accuracy, so it will
take longer to reach a position.
2020-05-29 11:46:14 +02:00
Julian Oes
bc1960ef2b
mavsdk_tests: make offboard tests more accurate
...
By making the acceptance radius smaller we should potentially also be
more accurate while landing and fail less.
2020-05-29 11:46:14 +02:00
Julian Oes
dd95498379
mavsdk_tests: at normal speed RTL can take a while
2020-05-29 11:46:14 +02:00
Julian Oes
76b7d462ae
mavsdk_tests: relax requirement to land at home
...
Hopefully, this will fix CI.
2020-05-29 11:46:14 +02:00
Julian Oes
d43e4d88c3
mavsdk_tests: wait until home is set properly
...
Otherwise we might have NaN stored as home.
2020-05-29 11:46:14 +02:00
Julian Oes
73dda496ef
mavsdk_tests: more verbose output on fail
2020-05-29 11:46:14 +02:00
Julian Oes
160aca9207
mavsdk_tests: more debug info
2020-05-29 11:46:14 +02:00
Julian Oes
1a25cdf7b2
mavsdk_tests: remove intermittently failing tests
...
We can bring them back when they work consistently.
2020-05-29 11:46:14 +02:00
Julian Oes
a1bf1bdd9d
mavsdk_tests: prevent exception if log_fd is None
2020-05-29 11:46:14 +02:00
Julian Oes
262341455b
mavsdk_tests: map stderr to stdout
...
That way we don't need to collect it separately.
2020-05-29 11:46:14 +02:00
Julian Oes
eba1cf08f8
mavsdk_tests: also use sleep workaround locally
...
However, don't sleep as long as in CI.
2020-05-29 11:46:14 +02:00
Julian Oes
76750fc8a6
mavsdk_tests: collect buffered up stdout output
...
Somehow only subprocess.stdout.readline() works at a time. In order not
to miss out on some of the stdout output, we need to collect it all at
the end. Also, we can stop using readline() for processes that have quit
already.
2020-05-29 11:46:14 +02:00
kamilritz
5bd0df422d
Speed up mavsdk sitl tests
2020-05-06 09:25:03 +02:00
kamilritz
af1a445031
Vision test can be speed up
2020-05-06 09:25:03 +02:00
kritz
33dc0fd146
Add vision velocity integration test ( #14818 )
2020-05-05 11:14:30 +02:00
Pedro Roque
3ea52fecd3
Added Roll Pitch Yawrate Thrust offboard test. Testing...
2020-04-30 17:43:25 -04:00
Julian Oes
cc0b834d15
mavsdk_tests: don't fail if DISPLAY is not set
2020-04-10 14:55:18 +02:00
Julian Oes
9764c32b55
mavsdk_tests: only apply workaround in GitHub CI
2020-04-08 16:56:52 +02:00
Julian Oes
54fe3c5fd5
mavsdk_tests: remove waitforgz helper, add sleep
...
This is an attempt to workaround the gz spawn timeout in CI.
Let's just hard-code a sleep before spawning the model.
2020-04-08 16:56:52 +02:00
Julian Oes
be9f125c3d
mavsdk_tests: raise timeout for czspawn
...
And provide better output about what happened.
2020-04-03 11:45:35 +02:00
Julian Oes
9c04f66f06
mavsdk_tests: raise overall timeouts
...
This might prevent some false positives when CI is running slowly or
intermittently.
2020-04-03 11:45:35 +02:00
Julian Oes
28f4dc10ae
mavsdk_tests: make sure all log output is printed
...
This fixes the issue where the last lines of the log output was not
printed in case of error or on the verbose setting. This meant that
essentially the actual test error was not printed.
The fix involves two parts:
1. Firstly collect the output again even if a process has exited.
2. Collect all lines at once and not one line per iteration.
2020-04-03 11:45:35 +02:00
Julian Oes
2a37321293
mavsdk_tests: wait a bit longer for gazebo command
...
Otherwise this triggers in CI sometimes.
2020-03-31 14:37:37 +02:00
Julian Oes
0edc2aa334
mavsdk_tests: don't stall on timeout
2020-03-31 14:37:37 +02:00
JaeyoungLim
315135c07e
Fix indentation in run script and update submodule
2020-03-23 10:55:13 +01:00
Julian Oes
103bfd0d30
mavsdk_tests: fix wait script output
2020-03-23 10:55:13 +01:00
Julian Oes
29c102b205
mavsdk_tests: wait for gz to run for model spawn
2020-03-23 10:55:13 +01:00
JaeyoungLim
b1d3b95ebf
Add gzmdoelspawning to mavsdk tests
2020-03-23 10:55:13 +01:00
Julian Oes
6d654cb50b
mavsdk_tests: improve usage text
...
These are improvements based on the review by @hamishwillee
in https://github.com/PX4/Devguide/pull/982 .
2020-03-19 08:53:21 +01:00
Julian Oes
89599f345f
mavsdk_tests: c++ test_runner is now mavsdk_tests
2020-03-18 17:57:41 +00:00
Julian Oes
ade39481ad
mavsdk_tests: only env vars that are set
...
Otherwise this raises a KeyError.
2020-03-18 17:57:41 +00:00
Julian Oes
759e3d6a04
mavsdk_tests: pass PX4_HOME_ env variables on
...
This way tests can be run at different locations.
2020-03-18 17:57:41 +00:00