Skip to content

Commit 45924a5

Browse files
committed
umu: set RUNTIMEPATH for environment tests
1 parent f44fefe commit 45924a5

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

umu/umu_test.py

+12
Original file line numberDiff line numberDiff line change
@@ -1867,6 +1867,7 @@ def test_game_drive_libpath_empty(self):
18671867
os.environ["PROTONPATH"] = self.test_file
18681868
os.environ["GAMEID"] = self.test_file
18691869
os.environ["STORE"] = self.test_file
1870+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
18701871
# Args
18711872
args = __main__.parse_args()
18721873
# Config
@@ -1930,6 +1931,7 @@ def test_game_drive_libpath(self):
19301931
os.environ["PROTONPATH"] = self.test_file
19311932
os.environ["GAMEID"] = self.test_file
19321933
os.environ["STORE"] = self.test_file
1934+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
19331935
# Args
19341936
args = __main__.parse_args()
19351937
# Config
@@ -2026,6 +2028,7 @@ def test_game_drive_empty(self):
20262028
os.environ["PROTONPATH"] = self.test_file
20272029
os.environ["GAMEID"] = self.test_file
20282030
os.environ["STORE"] = self.test_file
2031+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
20292032
# Args
20302033
args = __main__.parse_args()
20312034
# Config
@@ -2101,6 +2104,7 @@ def test_build_command_linux_exe(self):
21012104
os.environ["GAMEID"] = self.test_file
21022105
os.environ["STORE"] = self.test_file
21032106
os.environ["UMU_NO_PROTON"] = "1"
2107+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
21042108
# Args
21052109
result_args = __main__.parse_args()
21062110
# Config
@@ -2188,6 +2192,7 @@ def test_build_command_nopv(self):
21882192
os.environ["GAMEID"] = self.test_file
21892193
os.environ["STORE"] = self.test_file
21902194
os.environ["UMU_NO_RUNTIME"] = "1"
2195+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
21912196
# Args
21922197
result_args = __main__.parse_args()
21932198
# Config
@@ -2266,6 +2271,7 @@ def test_build_command_noproton(self):
22662271
os.environ["GAMEID"] = self.test_file
22672272
os.environ["STORE"] = self.test_file
22682273
os.environ["UMU_NO_RUNTIME"] = "pressure-vessel"
2274+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
22692275
# Args
22702276
result_args = __main__.parse_args()
22712277
# Config
@@ -2313,6 +2319,7 @@ def test_build_command(self):
23132319
os.environ["PROTONPATH"] = self.test_file
23142320
os.environ["GAMEID"] = self.test_file
23152321
os.environ["STORE"] = self.test_file
2322+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
23162323
# Args
23172324
result_args = __main__.parse_args()
23182325
# Config
@@ -2405,6 +2412,7 @@ def test_set_env_opts(self):
24052412
os.environ["GAMEID"] = test_str
24062413
os.environ["STORE"] = test_str
24072414
os.environ["PROTON_VERB"] = self.test_verb
2415+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
24082416
# Args
24092417
result = __main__.parse_args()
24102418
# Check
@@ -2485,6 +2493,7 @@ def test_set_env_id(self):
24852493
os.environ["GAMEID"] = umu_id
24862494
os.environ["STORE"] = test_str
24872495
os.environ["PROTON_VERB"] = self.test_verb
2496+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
24882497
# Args
24892498
result = __main__.parse_args()
24902499
# Check
@@ -2590,6 +2599,7 @@ def test_set_env_exe(self):
25902599
os.environ["GAMEID"] = test_str
25912600
os.environ["STORE"] = test_str
25922601
os.environ["PROTON_VERB"] = self.test_verb
2602+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
25932603
# Args
25942604
result = __main__.parse_args()
25952605
# Check
@@ -2703,6 +2713,7 @@ def test_set_env(self):
27032713
os.environ["STORE"] = test_str
27042714
os.environ["PROTON_VERB"] = self.test_verb
27052715
os.environ["UMU_RUNTIME_UPDATE"] = "0"
2716+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
27062717
# Args
27072718
result = __main__.parse_args()
27082719
# Check
@@ -2830,6 +2841,7 @@ def test_set_env_winetricks(self):
28302841
os.environ["PROTONPATH"] = test_dir.as_posix()
28312842
os.environ["GAMEID"] = test_str
28322843
os.environ["PROTON_VERB"] = proton_verb
2844+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
28332845
# Args
28342846
result = __main__.parse_args()
28352847
# Check

umu/umu_test_plugins.py

+3
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def test_build_command_entry(self):
181181
"parse_args",
182182
return_value=argparse.Namespace(config=toml_path),
183183
):
184+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
184185
# Args
185186
result = __main__.parse_args()
186187
# Config
@@ -256,6 +257,7 @@ def test_build_command_proton(self):
256257
"parse_args",
257258
return_value=argparse.Namespace(config=toml_path),
258259
):
260+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
259261
# Args
260262
result = __main__.parse_args()
261263
# Config
@@ -337,6 +339,7 @@ def test_build_command_toml(self):
337339
"parse_args",
338340
return_value=argparse.Namespace(config=toml_path),
339341
):
342+
os.environ["RUNTIMEPATH"] = self.test_runtime_version[1]
340343
# Args
341344
result = __main__.parse_args()
342345
# Config

0 commit comments

Comments
 (0)