Skip to content

Commit 7b3fbd5

Browse files
committed
selinux test: disable some tests (not a big deal)
1 parent f0d5b82 commit 7b3fbd5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/by-util/test_dd.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,6 +1552,8 @@ fn test_nocache_file() {
15521552

15531553
#[test]
15541554
#[cfg(unix)]
1555+
#[cfg(not(feature = "feat_selinux"))]
1556+
// Disabled on SELinux for now
15551557
fn test_skip_past_dev() {
15561558
// NOTE: This test intends to trigger code which can only be reached with root permissions.
15571559
let ts = TestScenario::new(util_name!());
@@ -1573,6 +1575,7 @@ fn test_skip_past_dev() {
15731575

15741576
#[test]
15751577
#[cfg(unix)]
1578+
#[cfg(not(feature = "feat_selinux"))]
15761579
fn test_seek_past_dev() {
15771580
// NOTE: This test intends to trigger code which can only be reached with root permissions.
15781581
let ts = TestScenario::new(util_name!());

tests/by-util/test_df.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ fn test_type_option() {
285285

286286
#[test]
287287
#[cfg(not(any(target_os = "freebsd", target_os = "windows")))] // FIXME: fix test for FreeBSD & Win
288+
#[cfg(not(feature = "feat_selinux"))]
288289
fn test_type_option_with_file() {
289290
let fs_type = new_ucmd!()
290291
.args(&["--output=fstype", "."])

0 commit comments

Comments
 (0)