Skip to content

Commit

Permalink
umu_test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Sep 6, 2024
1 parent 3b25557 commit e409b4f
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions umu/umu_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand All @@ -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
Expand All @@ -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)

Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit e409b4f

Please sign in to comment.