mavsdk_tests set nice levels for px4/gzclient/mavsdk_tests

This commit is contained in:
Daniel Agar
2024-11-20 13:53:29 -05:00
parent ada2bb4c42
commit 7288d16855

View File

@@ -155,10 +155,12 @@ class Px4Runner(Runner):
debugger: str, verbose: bool, build_dir: str):
super().__init__(log_dir, model, case, verbose)
self.name = "px4"
self.cmd = os.path.join(workspace_dir, build_dir, "bin/px4")
self.cwd = os.path.join(workspace_dir, build_dir,
"tmp_mavsdk_tests/rootfs")
self.cmd = "nice"
self.args = [
"--20",
os.path.join(workspace_dir, build_dir, "bin/px4"),
os.path.join(workspace_dir, build_dir, "etc"),
"-s",
"etc/init.d-posix/rcS",
@@ -329,8 +331,10 @@ class GzclientRunner(Runner):
self.env = dict(os.environ, **{
"GAZEBO_MODEL_PATH":
os.path.join(workspace_dir, PX4_GAZEBO_MODELS)})
self.cmd = "gzclient"
self.args = ["--verbose"]
self.cmd = "nice"
self.args = ["--19",
"gzclient",
"--verbose"]
class TestRunner(Runner):
@@ -347,7 +351,7 @@ class TestRunner(Runner):
self.name = "mavsdk_tests"
self.cwd = workspace_dir
self.cmd = "nice"
self.args = ["-5",
self.args = ["--18",
os.path.join(
workspace_dir,
build_dir,