mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-04 05:05:19 +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):
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user