Browse Source

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.
master
Julian Oes 3 years ago committed by Daniel Agar
parent
commit
dd6fb58f82
  1. 10
      test/mavsdk_tests/process_helper.py

10
test/mavsdk_tests/process_helper.py

@ -336,8 +336,12 @@ class TestRunner(Runner): @@ -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]

Loading…
Cancel
Save