mesontest: Fix usage of test.env as it can be a build.EnvironmentVariables

pull/1087/head
Thibault Saunier 8 years ago
parent 3f6e06c930
commit 2584a9f27d
  1. 4
      mesontest.py

@ -345,6 +345,10 @@ def filter_tests(suite, tests):
def gdbrun(test):
child_env = os.environ.copy()
if isinstance(test.env, build.EnvironmentVariables):
test.env = test.env.get_env(child_env)
child_env.update(test.env)
# On success will exit cleanly. On failure gdb will ask user
# if they really want to exit.

Loading…
Cancel
Save