From d54597ac7d1a4b9ae36cc240bec48ec33cc37a65 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Nov 2026 19:17:02 +0000 Subject: [PATCH] e2e: stage the test title under CARGO_TARGET_TMPDIR The e2e test staged the game and data folders in /target/e2e whatever the target directory was, so with CARGO_TARGET_DIR set elsewhere it still wrote into the repository: seen under Wine 11.22, where a target/e2e folder appeared in the repository after an e2e run with CARGO_TARGET_DIR pointing to another folder. Cargo hands integration tests a scratch folder inside the target directory, CARGO_TARGET_TMPDIR; the staging is now there (target\tmp\e2e, target\\tmp\e2e with --target). Windows: the same test, the folder moves from target\e2e to target\tmp\e2e. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_019twRmXSjLgBbFAokwc63ad --- crates/xcl/tests/e2e.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/xcl/tests/e2e.rs b/crates/xcl/tests/e2e.rs index f3082d2..5730108 100644 --- a/crates/xcl/tests/e2e.rs +++ b/crates/xcl/tests/e2e.rs @@ -97,7 +97,7 @@ fn test_title_runs_and_game_folder_is_untouched() { dll.display() ); let manifest = Path::new(env!("CARGO_MANIFEST_DIR")); - let root = manifest.join("..").join("..").join("target").join("e2e"); + let root = Path::new(env!("CARGO_TARGET_TMPDIR")).join("e2e"); let _ = std::fs::remove_dir_all(&root); let game = root.join("game"); let data = root.join("data");