Skip to content

Commit

Permalink
mavsdk_tests set nice levels for px4/gzclient/mavsdk_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar committed Nov 20, 2024
1 parent ada2bb4 commit 7288d16
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/mavsdk_tests/process_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,12 @@ def __init__(self, workspace_dir: str, log_dir: str,
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",
Expand Down Expand Up @@ -329,8 +331,10 @@ def __init__(self,
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):
Expand All @@ -347,7 +351,7 @@ def __init__(self,
self.name = "mavsdk_tests"
self.cwd = workspace_dir
self.cmd = "nice"
self.args = ["-5",
self.args = ["--18",
os.path.join(
workspace_dir,
build_dir,
Expand Down

0 comments on commit 7288d16

Please sign in to comment.