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:
Matthias Grob 2020-07-09 11:40:15 +02:00 committed by Julian Oes
parent 57cbf212be
commit 480cd5ed4e

View File

@ -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"]