1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Merge pull request #7799 from BenWiederhake/dev-shred-verbose-no-padding

shred: remove unwanted padding in verbose messages
This commit is contained in:
Daniel Hofstetter 2025-04-21 09:33:44 +02:00 committed by GitHub
commit 06bae0d797
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 1 deletions

View file

@ -208,3 +208,25 @@ fn test_shred_fail_no_perm() {
.fails()
.stderr_contains("Couldn't rename to");
}
#[test]
fn test_shred_verbose_no_padding_1() {
let (at, mut ucmd) = at_and_ucmd!();
let file = "foo";
at.write(file, "non-empty");
ucmd.arg("-vn1")
.arg(file)
.succeeds()
.stderr_only("shred: foo: pass 1/1 (random)...\n");
}
#[test]
fn test_shred_verbose_no_padding_10() {
let (at, mut ucmd) = at_and_ucmd!();
let file = "foo";
at.write(file, "non-empty");
ucmd.arg("-vn10")
.arg(file)
.succeeds()
.stderr_contains("shred: foo: pass 1/10 (random)...\n");
}