Skip to content

Commit f06ac2e

Browse files
Toni Jovanoskiminimoog
authored andcommitted
Fix test chggrp multiple files on apple
Use at_and_ucmd! macro instead TestScenario.
1 parent b72df8b commit f06ac2e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/by-util/test_chgrp.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -645,8 +645,7 @@ fn test_chgrp_recursive_on_file() {
645645
fn test_chgrp_multiple_files_error_on_first_success_on_last() {
646646
use std::os::unix::fs::PermissionsExt;
647647

648-
let scene = TestScenario::new(util_name!());
649-
let at = &scene.fixtures;
648+
let (at, mut ucmd) = at_and_ucmd!();
650649

651650
let current_gid = getegid();
652651

@@ -661,9 +660,7 @@ fn test_chgrp_multiple_files_error_on_first_success_on_last() {
661660
)
662661
.unwrap();
663662

664-
scene
665-
.ucmd()
666-
.arg("-R")
663+
ucmd.arg("-R")
667664
.arg(current_gid.to_string())
668665
.arg("a_readonly_dir")
669666
.arg("b_writable_file")

0 commit comments

Comments
 (0)