validate:launcher: Strip os.pathsep from extra env variables

We might be working with something that is not a path
This commit is contained in:
Thibault Saunier 2016-03-01 14:59:29 +01:00
parent 0535071158
commit 9708c7eb19

View file

@ -374,7 +374,8 @@ class Test(Loggable):
self.proc_env = self.get_subproc_env() self.proc_env = self.get_subproc_env()
for var, value in self.extra_env_variables.items(): for var, value in self.extra_env_variables.items():
self.proc_env[var] = self.proc_env.get(var, '') + os.pathsep + value value = self.proc_env.get(var, '') + os.pathsep + value
self.proc_env[var] = value.strip(os.pathsep)
self.add_env_variable(var, self.proc_env[var]) self.add_env_variable(var, self.proc_env[var])
if self.options.gdb: if self.options.gdb: