From b1fe2062153ef3f7b26f5ab1cf347e420db7e2a4 Mon Sep 17 00:00:00 2001 From: maxjivi05 Date: Thu, 3 Dec 2026 14:02:14 -0500 Subject: [PATCH] test(game-env): build the adopted-tool wrapper through extra_wrapper_sh --- tools/tests/test_game_environment.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/tests/test_game_environment.py b/tools/tests/test_game_environment.py index b7b658f21b..2ab2f6cba2 100644 --- a/tools/tests/test_game_environment.py +++ b/tools/tests/test_game_environment.py @@ -2612,8 +2612,8 @@ class GameEnvironmentTest(unittest.TestCase): def test_both_proton_wrappers_call_environment_launcher(self): self.assertIn('dd_directaudio "$depot" "$@"', COMPAT["LAUNCHER_SH"]) - self.assertIn('dd_directaudio "$here" "$@"', COMPAT["EXTRA_WRAPPER_SH"] % "proton") - for script in (COMPAT["LAUNCHER_SH"], COMPAT["EXTRA_WRAPPER_SH"] % "proton"): + self.assertIn('dd_directaudio "$here" "$@"', COMPAT["extra_wrapper_sh"]("proton")) + for script in (COMPAT["LAUNCHER_SH"], COMPAT["extra_wrapper_sh"]("proton")): subprocess.run(["bash", "-n"], input=script, text=True, check=True) self.assertIn('dd_run ${DD_TASKSET:-} /usr/local/bin/droiddeck-game-env', script) @@ -2692,7 +2692,7 @@ class GameEnvironmentTest(unittest.TestCase): with tempfile.TemporaryDirectory() as tmp: for name in ("libddsession.so", "libfakeinput.so"): (Path(tmp) / name).write_bytes(b"") - for script in (COMPAT["LAUNCHER_SH"], COMPAT["EXTRA_WRAPPER_SH"] % "proton"): + for script in (COMPAT["LAUNCHER_SH"], COMPAT["extra_wrapper_sh"]("proton")): start = script.index("for fake in ") block = script[start:script.index("\ndone\n", start) + 6].replace("/usr/local/lib/", tmp + "/") for inherited, expected in (