Julian Oes
2d8ebc6839
mavsdk_tests: add timestamp to log output
...
The timestamp is added when the output is queued up, rather than later
when the queue is emptied and some time might have passed.
3 years ago
Julian Oes
9184038359
mavsdk_tests: try to restart gzserver
...
Sometimes gzserver seems to just not start correctly. With this commit
we try to just restart.
3 years ago
TSC21
9894598b63
mavsdk_tests: update to be able to fetch rtps builds as well
3 years ago
Julian Oes
dcf69144cb
mavsdk_tests: fix type for mypy check
...
This was probably triggered due to a mypy update.
3 years ago
Julian Oes
94884594bb
mavsdk_tests: check gzserver and gz model calls
...
This adds two checks to make sure gzserver has actually started before
continuing, and also whether the gz model call was successful.
3 years ago
Julian Oes
c15d3f7cfa
mavsdk_tests: retry gz model spawn command
...
This should help when gzserver does not respond yet and we end up
without a model and hence can't connect later and time out.
This change also required a fix to prevent the tester to hang on
terminating all runners. By using poll instead of only read we can
prevent that and actually properly join the logger thread.
3 years ago
Julian Oes
1e88939605
mavsdk_tests: report speed factor every second
...
This helps in debugging slow CI.
4 years ago
Julian Oes
2703a34900
mavsdk_tests: add link back to github action
4 years ago
Julian Oes
64d0ce43b6
mavsdk_tests: upload to logs.px4.io in test_runner
...
By doing the upload directly inside the mavsdk_test_runner.py we have
more context such as the model, case, etc.
4 years ago
Julian Oes
e7651c94f6
mavsdk_tests: use custom rootfs, reset it
...
Instead of messing with existing params, use a separate rootfs for
tests, as suggested by @bkueng .
4 years ago
Julian Oes
c26b769cc0
mavsdk_tests: add missing type annotation
4 years ago
Julian Oes
630a6f3810
mavsdk_tests: clear params between test cases
4 years ago
Julian Oes
a05ad9c64c
mavsdk_tests: add wildcards for case filtering
4 years ago
Julian Oes
a1bf1bdd9d
mavsdk_tests: prevent exception if log_fd is None
5 years ago
Julian Oes
eba1cf08f8
mavsdk_tests: also use sleep workaround locally
...
However, don't sleep as long as in CI.
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
kritz
33dc0fd146
Add vision velocity integration test ( #14818 )
5 years ago
Julian Oes
9764c32b55
mavsdk_tests: only apply workaround in GitHub CI
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
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
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
6d654cb50b
mavsdk_tests: improve usage text
...
These are improvements based on the review by @hamishwillee
in https://github.com/PX4/Devguide/pull/982 .
5 years ago
Julian Oes
89599f345f
mavsdk_tests: c++ test_runner is now mavsdk_tests
5 years ago
Julian Oes
4905ac5e2c
mavsdk_tests: add filter for cases
5 years ago
Julian Oes
79387428c6
mavsdk_tests: fix missing space after number
5 years ago
Julian Oes
3f1990b083
mavsdk_tests: print where to find logfiles
5 years ago
Julian Oes
188177cef6
mavsdk_tests: print error on failure
5 years ago
Julian Oes
ab2186f126
mavsdk_tests: improve and fix colors/result
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
Julian Oes
b281d87b4a
mavsdk_tests: initialize Tester class in ctor
5 years ago
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.
5 years ago
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.
5 years ago
Julian Oes
b2e300ad1f
mavsdk_tests: improve test output readability
5 years ago
Julian Oes
54645268ed
mavsdk_tests: only print error on failure
5 years ago
Julian Oes
911cdc8774
mavsdk_tests: output less verbose unless needed
5 years ago
Julian Oes
bfef243dba
mavsdk_tests: write output to logs folder
...
And create folder if it doesn't exist already.
5 years ago
Julian Oes
70eb444f17
mavsdk_tests: improve naming of argument
...
We abort when we already failed so this makes more sense.
5 years ago
Julian Oes
41b2362dcf
mavsdk_tests: add more config into JSON
5 years ago
Julian Oes
b4916fdecb
mavsdk_tests: move config into json file
5 years ago
Julian Oes
44a556717d
mavsdk_tests: remove plane tests
...
We can put them back once it's supported.
5 years ago
Julian Oes
ae2032d29f
mavsdk_tests: use the min of the speed factors
...
Facepalm.
5 years ago
Julian Oes
86f24f5121
mavsdk_tests: remove opt_flow test
...
It doesn't actually seem to work.
5 years ago