summaryrefslogtreecommitdiff
path: root/mesontest.py
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2016-11-22 15:52:17 -0300
committerThibault Saunier <tsaunier@gnome.org>2016-11-22 15:52:17 -0300
commit2584a9f27df29db47d12e16f484f070cd1b63fa3 (patch)
treea507afc2fe341ecd9580006fd347c123677d17da /mesontest.py
parent3f6e06c9300f62c80a89770bc4c0ab768f42dc60 (diff)
downloadmeson-2584a9f27df29db47d12e16f484f070cd1b63fa3.tar.gz
mesontest: Fix usage of test.env as it can be a build.EnvironmentVariables
Diffstat (limited to 'mesontest.py')
-rwxr-xr-xmesontest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesontest.py b/mesontest.py
index 76b64491b..adc6c2f2a 100755
--- a/mesontest.py
+++ b/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.