diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-03-20 00:26:52 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-03-20 16:58:16 -0400 |
commit | 2a0b80eb679f27402035faa93b3b6b16f5839724 (patch) | |
tree | bf37521c4c12208cfea909cbf7ad5e490ea13aa3 | |
parent | fccada67035e984b1af668ef7064828b34eb6442 (diff) | |
download | meson-2a0b80eb679f27402035faa93b3b6b16f5839724.zip meson-2a0b80eb679f27402035faa93b3b6b16f5839724.tar.gz meson-2a0b80eb679f27402035faa93b3b6b16f5839724.tar.bz2 |
tests: fix regression that broke mtest_inprocess
In commit faf79f4539841cbf89fe8d53cf35aa91fd8273c9 we broke this utility
function by referencing a non-existent variable. Fortunately, the only
time we ever used said function was once, and that in a test case where
we tested that it raised a MesonException before the undefined variable
error could occur.
-rwxr-xr-x | run_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run_tests.py b/run_tests.py index 8a20937..89ae3b5 100755 --- a/run_tests.py +++ b/run_tests.py @@ -297,7 +297,7 @@ def run_mtest_inprocess(commandlist: T.List[str]) -> T.Tuple[int, str, str]: out = StringIO() with mock.patch.object(sys, 'stdout', out), mock.patch.object(sys, 'stderr', out): returncode = mtest.run_with_args(commandlist) - return returncode, stdout.getvalue() + return returncode, out.getvalue() def clear_meson_configure_class_caches() -> None: CCompiler.find_library_cache = {} |