mirror of
https://github.com/ivall/xcl.git
synced 2026-11-24 05:14:57 +01:00
e2e: stage the test title under CARGO_TARGET_TMPDIR
The e2e test staged the game and data folders in <repo>/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\<triple>\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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019twRmXSjLgBbFAokwc63ad
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user