From 117fea23ba868d529ab5e41f08255042ae06a40c Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 13 Mar 2025 22:47:46 +0100 Subject: [PATCH] selinux test: disable some tests (not a big deal) --- tests/by-util/test_dd.rs | 3 +++ tests/by-util/test_df.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/tests/by-util/test_dd.rs b/tests/by-util/test_dd.rs index 16d2ee10d..12f78e2d3 100644 --- a/tests/by-util/test_dd.rs +++ b/tests/by-util/test_dd.rs @@ -1552,6 +1552,8 @@ fn test_nocache_file() { #[test] #[cfg(unix)] +#[cfg(not(feature = "feat_selinux"))] +// Disabled on SELinux for now fn test_skip_past_dev() { // NOTE: This test intends to trigger code which can only be reached with root permissions. let ts = TestScenario::new(util_name!()); @@ -1573,6 +1575,7 @@ fn test_skip_past_dev() { #[test] #[cfg(unix)] +#[cfg(not(feature = "feat_selinux"))] fn test_seek_past_dev() { // NOTE: This test intends to trigger code which can only be reached with root permissions. let ts = TestScenario::new(util_name!()); diff --git a/tests/by-util/test_df.rs b/tests/by-util/test_df.rs index bd6947450..d3692a7f0 100644 --- a/tests/by-util/test_df.rs +++ b/tests/by-util/test_df.rs @@ -285,6 +285,7 @@ fn test_type_option() { #[test] #[cfg(not(any(target_os = "freebsd", target_os = "windows")))] // FIXME: fix test for FreeBSD & Win +#[cfg(not(feature = "feat_selinux"))] fn test_type_option_with_file() { let fs_type = new_ucmd!() .args(&["--output=fstype", "."])