mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2025-12-09 04:01:49 +08:00
mavsdk_tests set nice levels for px4/gzclient/mavsdk_tests
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user