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