Skip to content

Commit

Permalink
✅ Skip --keep-xattr option for NetBSD
Browse files Browse the repository at this point in the history
because NetBSD default filesystem is not support extended attribute.
  • Loading branch information
ChanTsune committed Oct 12, 2024
1 parent 7746b1c commit 1750609
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cli/tests/combination/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@ pub mod utils {
use itertools::Itertools;
use utils::diff::diff;

// NOTE: Skip `--keep-xattr` option for NetBSD
// because NetBSD default filesystem is not support extended attribute.
#[cfg(not(target_os = "netbsd"))]
const KEEP_OPTIONS: [Option<&str>; 4] = [
Some("--keep-dir"),
Some("--keep-timestamp"),
Some("--keep-permission"),
Some("--keep-xattr"),
];

#[cfg(target_os = "netbsd")]
const KEEP_OPTIONS: [Option<&str>; 3] = [
Some("--keep-dir"),
Some("--keep-timestamp"),
Some("--keep-permission"),
];
const COMPRESSION_OPTIONS: [Option<&str>; 4] = [
Some("--store"),
Some("--deflate"),
Expand Down

0 comments on commit 1750609

Please sign in to comment.