mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-11 07:18:45 +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:
committed by
Julian Oes
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"]
|
||||
|
||||
Reference in New Issue
Block a user