Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cli/tests/cli/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ mod option_keep_old_files;
mod option_keep_permission;
mod option_keep_timestamp;
mod option_mtime;
mod option_owner;
mod option_password_from_file;
mod option_safe_writes;
mod option_substitution;
Expand Down
6 changes: 2 additions & 4 deletions cli/tests/cli/extract/option_chroot.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![cfg(all(unix, not(target_family = "wasm")))]
use crate::utils::unix::skip_if_not_root;
use crate::utils::{EmbedExt, TestResources, setup};
use assert_cmd::cargo::cargo_bin_cmd;
use std::fs;
Expand All @@ -8,10 +9,7 @@ use std::fs;
/// Expectation: Absolute output path is resolved relative to chroot root, not filesystem root.
#[test]
fn archive_extract_chroot() {
// chroot need root privileges
if !nix::unistd::Uid::effective().is_root() {
return;
}
skip_if_not_root!();
setup();
TestResources::extract_in("zstd.pna", "extract_chroot/").unwrap();

Expand Down
Loading
Loading