test(ci): stabilize main fixture paths (#6523)

This commit is contained in:
Zhengchao An
2026-08-24 19:34:02 +08:00
committed by GitHub
parent e2193cc42c
commit a1ebe9a3b3
5 changed files with 13 additions and 8 deletions
@@ -278,7 +278,8 @@ fn prepare_inputs(temp: &tempfile::TempDir, root_pem: &str) -> (std::path::PathB
}
fn secure_tempdir() -> tempfile::TempDir {
let home = std::path::PathBuf::from(std::env::var_os("HOME").expect("test requires a protected home directory"));
let home = std::fs::canonicalize(std::env::var_os("HOME").expect("test requires a protected home directory"))
.expect("test home directory must resolve without symlink components");
tempfile::Builder::new()
.prefix(".connect-registration-")
.tempdir_in(home)