Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw committed Nov 27, 2024
1 parent b718b77 commit f3088ae
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ fn options(
#[default(false)] ignore_pypi_errors: bool,
#[default("env")] env_name: String,
) -> Options {
let output_dir = tempdir().expect("Couldn't create a temp dir for tests");
let pack_file = output_dir.path().join("environment.tar");
// let output_dir = tempdir().expect("Couldn't create a temp dir for tests");
// let pack_file = output_dir.path().join("environment.tar");
let pack_file = tempdir().unwrap().path().join("environment.tar");

Options {
pack_options: PackOptions {
environment,
Expand All @@ -45,12 +47,12 @@ fn options(
ignore_pypi_errors,
},
unpack_options: UnpackOptions {
pack_file,
output_directory: output_dir.path().to_path_buf(),
pack_file: pack_file.clone(),
output_directory: pack_file.parent().unwrap().to_path_buf(),
env_name,
shell,
},
output_dir,
output_dir: tempdir().unwrap(),
}
}

Expand Down Expand Up @@ -314,6 +316,7 @@ async fn test_reproducible_shasum(
) {
let pack_result = pixi_pack::pack(options.pack_options.clone()).await;
assert!(pack_result.is_ok(), "{:?}", pack_result);
println!("output_file: {:?}", options.pack_options.output_file);

let sha256_digest = sha256_digest_bytes(&options.pack_options.output_file);
insta::assert_snapshot!(format!("sha256-{}", platform), &sha256_digest);
Expand Down

0 comments on commit f3088ae

Please sign in to comment.