mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +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:
commit
06bae0d797
2 changed files with 23 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue