From e409b4ffc954a29a8d15a81d76d3eb3c40652649 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Thu, 5 Sep 2024 18:06:51 -0700 Subject: [PATCH] umu_test: update tests --- umu/umu_test.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/umu/umu_test.py b/umu/umu_test.py index d23c7086..712b1e90 100644 --- a/umu/umu_test.py +++ b/umu/umu_test.py @@ -1406,13 +1406,11 @@ def test_game_drive_empty(self): self.env["EXE"], "Expected EXE to be empty on empty string" ) - def test_build_command_noruntime(self): - """Test build_command when disabling the Steam Runtime. + def test_build_command_linux_exe(self): + """Test build_command when running a Linux executable. - UMU_NO_RUNTIME=1 disables the Steam Runtime, which is no different than - running the executable directly. - - Expects the list to contain one string element. + UMU_NO_PROTON=1 disables Proton, running the executable directly in the + Steam Linux Runtime. """ result_args = None test_command = [] @@ -1428,7 +1426,7 @@ def test_build_command_noruntime(self): os.environ["PROTONPATH"] = self.test_file os.environ["GAMEID"] = self.test_file os.environ["STORE"] = self.test_file - os.environ["UMU_NO_RUNTIME"] = "1" + os.environ["UMU_NO_PROTON"] = "1" # Args result_args = umu_run.parse_args() # Config @@ -1437,7 +1435,6 @@ def test_build_command_noruntime(self): umu_run.setup_pfx(self.env["WINEPREFIX"]) # Env umu_run.set_env(self.env, result_args) - self.env["UMU_NO_RUNTIME"] = os.environ["UMU_NO_RUNTIME"] # Game drive umu_run.enable_steam_game_drive(self.env) @@ -1496,7 +1493,7 @@ def test_build_command_noruntime(self): def test_build_command_nopv(self): """Test build_command when disabling Pressure Vessel. - UMU_NO_RUNTIME=pressure-vessel disables Pressure Vessel, allowing + UMU_NO_RUNTIME=1 disables Pressure Vessel, allowing the launcher to run Proton on the host -- Flatpak environment. Expects the list to contain 3 string elements. @@ -1515,7 +1512,7 @@ def test_build_command_nopv(self): os.environ["PROTONPATH"] = self.test_file os.environ["GAMEID"] = self.test_file os.environ["STORE"] = self.test_file - os.environ["UMU_NO_RUNTIME"] = "pressure-vessel" + os.environ["UMU_NO_RUNTIME"] = "1" # Args result_args = umu_run.parse_args() # Config