Skip to content

Commit 6f68d58

Browse files
committed
chgrp: edit tests to new verbose output
1 parent 2fcf48c commit 6f68d58

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/by-util/test_chgrp.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ fn test_reference_multi_no_equal() {
231231
.arg("file1")
232232
.arg("file2")
233233
.succeeds()
234-
.stderr_contains("chgrp: group of 'file1' retained as ")
235-
.stderr_contains("\nchgrp: group of 'file2' retained as ");
234+
.stderr_contains("chgrp: group of 'file1' retained as {}", getegid())
235+
.stderr_contains("\nchgrp: group of 'file2' retained as {}", getegid());
236236
}
237237

238238
#[test]
@@ -246,9 +246,9 @@ fn test_reference_last() {
246246
.arg("--reference")
247247
.arg("ref_file")
248248
.succeeds()
249-
.stderr_contains("chgrp: group of 'file1' retained as ")
250-
.stderr_contains("\nchgrp: group of 'file2' retained as ")
251-
.stderr_contains("\nchgrp: group of 'file3' retained as ");
249+
.stderr_contains("chgrp: group of 'file1' retained as {}", getegid())
250+
.stderr_contains("\nchgrp: group of 'file2' retained as {}", getegid())
251+
.stderr_contains("\nchgrp: group of 'file3' retained as {}", getegid());
252252
}
253253

254254
#[test]
@@ -511,7 +511,7 @@ fn test_verbosity_messages() {
511511
.arg("--reference=ref_file")
512512
.arg("target_file")
513513
.succeeds()
514-
.stderr_contains("group of 'target_file' retained as ");
514+
.stderr_contains("group of 'target_file' retained as {}", getegid());
515515
}
516516

517517
#[test]

0 commit comments

Comments
 (0)