Julian Oes
8d3f1e63f0
mavsdk_tests: use all os env vars by default
5 years ago
Beat Küng
055fa768d8
posix: enable ROMFSROOT
...
This will copy the ROMFS into the build directory under etc/, and thus
needs a change of the PX4 startup parameters and mixer paths.
5 years ago
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.
5 years ago
Julian Oes
262341455b
mavsdk_tests: map stderr to stdout
...
That way we don't need to collect it separately.
5 years ago
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.
5 years ago
Julian Oes
cc0b834d15
mavsdk_tests: don't fail if DISPLAY is not set
5 years ago
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.
5 years ago
Julian Oes
be9f125c3d
mavsdk_tests: raise timeout for czspawn
...
And provide better output about what happened.
5 years ago
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.
5 years ago
Julian Oes
2a37321293
mavsdk_tests: wait a bit longer for gazebo command
...
Otherwise this triggers in CI sometimes.
5 years ago
Julian Oes
0edc2aa334
mavsdk_tests: don't stall on timeout
5 years ago
Julian Oes
29c102b205
mavsdk_tests: wait for gz to run for model spawn
5 years ago
JaeyoungLim
b1d3b95ebf
Add gzmdoelspawning to mavsdk tests
5 years ago
Julian Oes
89599f345f
mavsdk_tests: c++ test_runner is now mavsdk_tests
5 years ago
Julian Oes
ade39481ad
mavsdk_tests: only env vars that are set
...
Otherwise this raises a KeyError.
5 years ago
Julian Oes
759e3d6a04
mavsdk_tests: pass PX4_HOME_ env variables on
...
This way tests can be run at different locations.
5 years ago
Julian Oes
4a91d791b1
mavsdk_tests: remove commented out code
5 years ago
Julian Oes
eb1141bbea
mavsdk_tests: remove unused import
5 years ago
Julian Oes
b1ceef5b93
mavsdk_tests: add combined log
5 years ago
Julian Oes
814d79cb32
mavsdk_tests: improve log file folder structure
5 years ago
Julian Oes
8283d19682
mavsdk_tests: print overall results
5 years ago
Julian Oes
a208129921
mavsdk_tests: satisfy mypy type checks
5 years ago
Julian Oes
12252c97c5
mavsdk_tests: further argument cleanup, some types
5 years ago
Julian Oes
ff64d87ae6
mavsdk_tests: import naming, easier coloring
5 years ago
Julian Oes
11a28840f3
mavsdk_tests: split up Python script
...
Otherwise, the script will get a tangled mess.
5 years ago