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 (