aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-01-14 12:08:45 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-01-15 10:03:54 +0100
commit51e1f01c85276f356c0dab84a46f15d29529fb17 (patch)
tree940aa4c20bee07ce53f95f43a7a4b8e059666111
parent458c3125e0d7db9dbc9fcb73c5309174b2b1d19a (diff)
downloadmeson-51e1f01c85276f356c0dab84a46f15d29529fb17.zip
meson-51e1f01c85276f356c0dab84a46f15d29529fb17.tar.gz
meson-51e1f01c85276f356c0dab84a46f15d29529fb17.tar.bz2
mtest: store the environment in the TestRun
The test_env was lost from the TestRun object in commit 30741a0f2 ("mtest: create TestRun object early on"). Fix things.
-rw-r--r--mesonbuild/mtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 5a0af47..3030588 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -746,7 +746,7 @@ class TestRun:
self.stdo = None # type: T.Optional[str]
self.stde = None # type: T.Optional[str]
self.cmd = None # type: T.Optional[T.List[str]]
- self.env = dict() # type: T.Dict[str, str]
+ self.env = test_env # type: T.Dict[str, str]
self.should_fail = test.should_fail
self.project = test.project_name
self.junit = None # type: T.Optional[et.ElementTree]