Skip to content

Commit eff69ed

Browse files
committed
fix: extraction for integration tests
1 parent 9ee514b commit eff69ed

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/integration.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ fn ensure_extracted(archive: &str) -> Option<PathBuf> {
2828

2929
if !dir_path.exists() {
3030
let parent = archive_path.parent().unwrap_or(Path::new("."));
31+
let filename = archive_path.file_name().unwrap().to_str().unwrap();
3132
let status = Command::new("tar")
32-
.args(["xzf", archive])
33+
.args(["xzf", filename])
3334
.current_dir(parent)
3435
.status()
3536
.expect("Failed to run tar");

0 commit comments

Comments
 (0)