From aab0ff201b60879fbaa2ed94ea94e69e37ec11a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 9 May 2024 16:45:46 +0200 Subject: [PATCH] glib/tests/build: Support setting env variables for python tests --- glib/tests/meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/glib/tests/meson.build b/glib/tests/meson.build index 21492ac5f..68cf43fa6 100644 --- a/glib/tests/meson.build +++ b/glib/tests/meson.build @@ -508,6 +508,11 @@ foreach test_name, extra_args : python_tests suite += 'failing' endif + local_test_env = test_env + foreach var, value : extra_args.get('env', {}) + local_test_env.append(var, value) + endforeach + foreach program : extra_args.get('extra_programs', []) depends += test_extra_programs_targets[program] endforeach @@ -518,7 +523,7 @@ foreach test_name, extra_args : python_tests protocol : extra_args.get('protocol', test_protocol), depends: depends, args: ['-B', files(test_name)], - env: test_env, + env: local_test_env, suite: suite, )