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
Julian Oes
4a91d791b1
mavsdk_tests: remove commented out code
2020-03-18 17:57:41 +00:00
Julian Oes
9d124c2b1a
mavsdk_tests: a timeout of 5min should be enough
2020-03-18 17:57:41 +00:00
Julian Oes
eb1141bbea
mavsdk_tests: remove unused import
2020-03-18 17:57:41 +00:00
Julian Oes
c6160d4e3f
mavsdk_tests: fix error for Python < 3.8
2020-03-18 17:57:41 +00:00
Julian Oes
41341cd985
mavsdk_tests: name files consistently
2020-03-18 17:57:41 +00:00
Julian Oes
b5048a3414
mavsdk_tests: add header and fix style
2020-03-18 17:57:41 +00:00
Julian Oes
4905ac5e2c
mavsdk_tests: add filter for cases
2020-03-18 17:57:41 +00:00
Julian Oes
79387428c6
mavsdk_tests: fix missing space after number
2020-03-18 17:57:41 +00:00
Julian Oes
3f1990b083
mavsdk_tests: print where to find logfiles
2020-03-18 17:57:41 +00:00
Julian Oes
188177cef6
mavsdk_tests: print error on failure
2020-03-18 17:57:41 +00:00
Julian Oes
ab2186f126
mavsdk_tests: improve and fix colors/result
2020-03-18 17:57:41 +00:00
Julian Oes
b1ceef5b93
mavsdk_tests: add combined log
2020-03-18 17:57:41 +00:00
Julian Oes
814d79cb32
mavsdk_tests: improve log file folder structure
2020-03-18 17:57:41 +00:00
Julian Oes
8283d19682
mavsdk_tests: print overall results
2020-03-18 17:57:41 +00:00
Julian Oes
a208129921
mavsdk_tests: satisfy mypy type checks
2020-03-18 17:57:41 +00:00
Julian Oes
12252c97c5
mavsdk_tests: further argument cleanup, some types
2020-03-18 17:57:41 +00:00
Julian Oes
ff64d87ae6
mavsdk_tests: import naming, easier coloring
2020-03-18 17:57:41 +00:00
Julian Oes
11a28840f3
mavsdk_tests: split up Python script
...
Otherwise, the script will get a tangled mess.
2020-03-18 17:57:41 +00:00
Julian Oes
b281d87b4a
mavsdk_tests: initialize Tester class in ctor
2020-03-18 17:57:41 +00:00
Julian Oes
e2c80e546d
mavsdk_tests: properly exit on Ctrl+C
...
With threads we need to manually take care of it, otherwise it gets
messy and we need to press Ctrl+C multiple times.
2020-03-18 17:57:41 +00:00
Julian Oes
2c2e314ffe
mavsdk_tests: improve output, allow log and stdout
...
This makes it possible to write to logfiles and at the same time print
everything to console in verbose mode.
2020-03-18 17:57:41 +00:00
Julian Oes
d7eb600b59
mavsdk_tests: improve test name/description
2020-03-18 17:57:41 +00:00
Julian Oes
b2e300ad1f
mavsdk_tests: improve test output readability
2020-03-18 17:57:41 +00:00
Julian Oes
54645268ed
mavsdk_tests: only print error on failure
2020-03-18 17:57:41 +00:00
Julian Oes
911cdc8774
mavsdk_tests: output less verbose unless needed
2020-03-18 17:57:41 +00:00
Julian Oes
bfef243dba
mavsdk_tests: write output to logs folder
...
And create folder if it doesn't exist already.
2020-03-18 17:57:41 +00:00
Julian Oes
5ba28d417a
mavsdk_tests: try using tags as intended
...
The tags should enable use to assemble the tests in various ways. This
will probably require some iterations though.
2020-03-18 17:57:41 +00:00
Julian Oes
512faa6ebe
mavsdk_tests: use CHECK if we don't need to abort
2020-03-18 17:57:41 +00:00
Julian Oes
821f7c3cd9
mavsdk_tests: remove unused/not working test
...
We can add it again once fixedwing is supported. Until then, this is
just confusing.
2020-03-18 17:57:41 +00:00
Julian Oes
fb5b05ec39
mavsdk_tests: add missing unit
2020-03-18 17:57:41 +00:00
Julian Oes
a5d1ce91e4
mavsdk_tests: consolidate level of abstraction
...
This moves the CHECK/REQUIRE inside of AutopilotTester.
2020-03-18 17:57:41 +00:00
Julian Oes
70eb444f17
mavsdk_tests: improve naming of argument
...
We abort when we already failed so this makes more sense.
2020-03-18 17:57:41 +00:00
Julian Oes
41b2362dcf
mavsdk_tests: add more config into JSON
2020-03-18 17:57:41 +00:00