Skip to content

Commit

Permalink
Merge pull request #5734 from sylvestre/improv-skip
Browse files Browse the repository at this point in the history
dd/chroot: improve the skip message (not root)
  • Loading branch information
sylvestre committed Dec 28, 2023
2 parents 04a7f9c + 764ea34 commit 4e9dbe3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/by-util/test_chroot.rs
Expand Up @@ -124,7 +124,7 @@ fn test_default_shell() {
if let Ok(result) = run_ucmd_as_root(&ts, &[dir]) {
result.stderr_contains(expected);
} else {
print!("TEST SKIPPED");
print!("Test skipped; requires root user");
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/by-util/test_dd.rs
Expand Up @@ -1565,7 +1565,7 @@ fn test_skip_past_dev() {
result.stderr_contains("0+0 records out");
result.code_is(1);
} else {
print!("TEST SKIPPED");
print!("Test skipped; requires root user");
}
}

Expand All @@ -1586,7 +1586,7 @@ fn test_seek_past_dev() {
result.stderr_contains("0+0 records out");
result.code_is(1);
} else {
print!("TEST SKIPPED");
print!("Test skipped; requires root user");
}
}

Expand Down

0 comments on commit 4e9dbe3

Please sign in to comment.