Skip to content

Commit 566ca8a

Browse files
author
Joseph Rafael Ferrer
committed
Rename test_mv_sticky_to_xpart feature to requires_root
1 parent 830d7b1 commit 566ca8a

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

tree/Cargo.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ regex.workspace = true
2020

2121
[features]
2222
posixutils_test_all = []
23-
24-
# This test must be run alone
25-
test_mv_sticky_to_xpart = []
23+
requires_root = []
2624

2725
[[bin]]
2826
name = "chgrp"

tree/tests/cp/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ fn test_cp_proc_short_read() {
955955
not(all(
956956
target_os = "linux",
957957
feature = "posixutils_test_all",
958-
feature = "test_mv_sticky_to_xpart"
958+
feature = "requires_root"
959959
)),
960960
ignore
961961
)]

tree/tests/mv/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ fn test_mv_i_link_no() {
13621362
not(all(
13631363
target_os = "linux",
13641364
feature = "posixutils_test_all",
1365-
feature = "test_mv_sticky_to_xpart"
1365+
feature = "requires_root"
13661366
)),
13671367
ignore
13681368
)]
@@ -1396,7 +1396,7 @@ fn test_mv_sticky_to_xpart() {
13961396
fs::create_dir(other_dir).unwrap();
13971397

13981398
let non_root = option_env!("NON_ROOT_USERNAME").expect(
1399-
"`test_mv_sticky_to_xpart` requires the \
1399+
"`requires_root` requires the \
14001400
`NON_ROOT_USERNAME` environment variable",
14011401
);
14021402

0 commit comments

Comments
 (0)