Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/test_guest_scene_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ def test_launch_failure_preserves_run_record_and_logs(self):
"--shaders", str(root), "--out", str(out)]
if sys.platform != "win32":
cmd += ["--wine", str(bad_loader), "--wine-arg=-a", "--wine-arg=path with spaces/wine"]
result = subprocess.run(cmd, capture_output=True, encoding="utf-8", timeout=20)
# The launch error carries the OS message in the console's ANSI code page on a non-English Windows
# (cp1251 on Russian Windows 10), so the output is decoded as the test above does it.
result = subprocess.run(cmd, capture_output=True, encoding="utf-8", errors="replace", timeout=20)
self.assertEqual(result.returncode, 1, result.stdout + result.stderr)
report = json.loads((out / "report.json").read_text(encoding="utf-8"))
self.assertIn("could not launch", report["error"])
Expand Down
Loading