baseclass: add_validate_config: don't use self.proc_env

self.proc_env is created when starting the test but this API can be call
by generator when creating the test.
This commit is contained in:
Guillaume Desmottes 2019-02-07 17:04:52 +01:00
parent 921a073bdf
commit 0c83ff56dd

View file

@ -466,9 +466,9 @@ class Test(Loggable):
if not subenv:
subenv = self.extra_env_variables
if subenv.get('GST_VALIDATE_CONFIG'):
if "GST_VALIDATE_CONFIG" in subenv:
subenv['GST_VALIDATE_CONFIG'] = '%s%s%s' % (
self.proc_env['GST_VALIDATE_CONFIG'], os.pathsep, config)
subenv['GST_VALIDATE_CONFIG'], os.pathsep, config)
else:
subenv['GST_VALIDATE_CONFIG'] = config