mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
groups: fix test for arch
This commit is contained in:
parent
05f65b05ad
commit
d846c40372
1 changed files with 3 additions and 5 deletions
|
@ -13,7 +13,7 @@ fn test_groups() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(target_os = "linux"))]
|
#[cfg(any(target_vendor = "apple", target_os = "linux"))]
|
||||||
#[ignore = "fixme: 'groups USERNAME' needs more debugging"]
|
#[ignore = "fixme: 'groups USERNAME' needs more debugging"]
|
||||||
fn test_groups_username() {
|
fn test_groups_username() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
|
@ -39,15 +39,13 @@ fn test_groups_username() {
|
||||||
|
|
||||||
#[cfg(any(target_vendor = "apple", target_os = "linux"))]
|
#[cfg(any(target_vendor = "apple", target_os = "linux"))]
|
||||||
fn expected_result(args: &[&str]) -> String {
|
fn expected_result(args: &[&str]) -> String {
|
||||||
#[cfg(target_os = "linux")]
|
let util_name = "id";
|
||||||
let util_name = util_name!();
|
|
||||||
#[cfg(target_vendor = "apple")]
|
|
||||||
let util_name = format!("g{}", util_name!());
|
|
||||||
|
|
||||||
TestScenario::new(&util_name)
|
TestScenario::new(&util_name)
|
||||||
.cmd_keepenv(util_name)
|
.cmd_keepenv(util_name)
|
||||||
.env("LANGUAGE", "C")
|
.env("LANGUAGE", "C")
|
||||||
.args(args)
|
.args(args)
|
||||||
|
.args(&["-Gn"])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_move_str()
|
.stdout_move_str()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue