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