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 7c507f1 commit 8423680
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/mavsdk_tests/process_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ 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.cmd = "nice --20 " + os.path.join(workspace_dir, build_dir, "bin/px4")
self.cwd = os.path.join(workspace_dir, build_dir,
"tmp_mavsdk_tests/rootfs")
self.args = [
Expand Down Expand Up @@ -329,8 +329,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 +349,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 8423680

Please sign in to comment.