meson-introspect: do not include host environment in test/benchmark introspection

The host environment could change between the time "meson setup"
produces intro-tests.json, and the time "meson test" is run.
Including it only adds clutter to the introspection data.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
pull/5437/head
Paolo Bonzini 6 years ago committed by Jussi Pakkanen
parent 0714ba58c7
commit 9491878681
  1. 2
      mesonbuild/mintro.py

@ -299,7 +299,7 @@ def get_test_list(testdata):
fname = t.fname
to['cmd'] = fname + t.cmd_args
if isinstance(t.env, build.EnvironmentVariables):
to['env'] = t.env.get_env(os.environ)
to['env'] = t.env.get_env({})
else:
to['env'] = t.env
to['name'] = t.name

Loading…
Cancel
Save