mavsdk_tests: don't stall mavsdk_tests binary

This is an attempt to fix the test failure where PX4 detects an RC
timeout presumably because the tester process mavsdk_tests is stalled
and does not send RC control messages in time.
This commit is contained in:
Julian Oes 2021-12-22 12:59:20 +01:00 committed by Daniel Agar
parent 952cfe2fd7
commit dd6fb58f82
1 changed files with 7 additions and 3 deletions

View File

@ -336,8 +336,12 @@ class TestRunner(Runner):
super().__init__(log_dir, model, case, verbose)
self.name = "mavsdk_tests"
self.cwd = workspace_dir
self.cmd = os.path.join(workspace_dir, build_dir,
"mavsdk_tests/mavsdk_tests")
self.args = ["--url", mavlink_connection,
self.cmd = "nice"
self.args = ["-5",
os.path.join(
workspace_dir,
build_dir,
"mavsdk_tests/mavsdk_tests"),
"--url", mavlink_connection,
"--speed-factor", str(speed_factor),
case]