From dd6fb58f82e3d5fcfab2ed3f8304857c17a804bd Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 22 Dec 2021 12:59:20 +0100 Subject: [PATCH] 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. --- test/mavsdk_tests/process_helper.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/mavsdk_tests/process_helper.py b/test/mavsdk_tests/process_helper.py index 087f4a97b3..097f20c9fc 100644 --- a/test/mavsdk_tests/process_helper.py +++ b/test/mavsdk_tests/process_helper.py @@ -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]