mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mavsdk_tests: load all os environment variables for gazebo client
such that OpenGL options are also used for mavsdk_tests when the GUI is enabled.
This commit is contained in:
parent
57cbf212be
commit
480cd5ed4e
@ -238,10 +238,8 @@ class GzclientRunner(Runner):
|
||||
super().__init__(log_dir, model, case, verbose)
|
||||
self.name = "gzclient"
|
||||
self.cwd = workspace_dir
|
||||
self.env = {"PATH": os.environ['PATH'],
|
||||
"HOME": os.environ['HOME'],
|
||||
"GAZEBO_MODEL_PATH":
|
||||
workspace_dir + "/Tools/sitl_gazebo/models"}
|
||||
self.env = dict(os.environ, **{
|
||||
"GAZEBO_MODEL_PATH": workspace_dir + "/Tools/sitl_gazebo/models"})
|
||||
self.add_to_env_if_set("DISPLAY")
|
||||
self.cmd = "gzclient"
|
||||
self.args = ["--verbose"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user