From 2a0b80eb679f27402035faa93b3b6b16f5839724 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 20 Mar 2023 00:26:52 -0400 Subject: [PATCH] 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. --- run_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_tests.py b/run_tests.py index 8a2093790..89ae3b5c8 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 = {}