validate:launcher: Stop spamming envvars in unit tests command printing.

We used to print the whole environment, making it ugly and hard to
read.
This commit is contained in:
Thibault Saunier 2018-07-08 17:02:59 -04:00
parent 69ec48feef
commit 29ef55c469

View file

@ -65,6 +65,7 @@ class MesonTest(Test):
env['CK_FORK'] = 'no' env['CK_FORK'] = 'no'
self.add_env_variable('CK_FORK', 'no') self.add_env_variable('CK_FORK', 'no')
for var, val in self.child_env.items(): for var, val in self.child_env.items():
if val != os.environ.get(var):
self.add_env_variable(var, val) self.add_env_variable(var, val)
return env return env