1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-14 19:16:17 +00:00

Revert "groups: fix test for arch"

This reverts commit d846c40372.
This commit is contained in:
Terts Diepraam 2021-06-09 14:37:19 +02:00
parent 3818e54415
commit 8ae4a8d06e

View file

@ -13,7 +13,7 @@ fn test_groups() {
}
#[test]
#[cfg(any(target_vendor = "apple", target_os = "linux"))]
#[cfg(any(target_os = "linux"))]
#[ignore = "fixme: 'groups USERNAME' needs more debugging"]
fn test_groups_username() {
let scene = TestScenario::new(util_name!());
@ -39,13 +39,15 @@ fn test_groups_username() {
#[cfg(any(target_vendor = "apple", target_os = "linux"))]
fn expected_result(args: &[&str]) -> String {
let util_name = "id";
#[cfg(target_os = "linux")]
let util_name = util_name!();
#[cfg(target_vendor = "apple")]
let util_name = format!("g{}", util_name!());
TestScenario::new(&util_name)
.cmd_keepenv(util_name)
.env("LANGUAGE", "C")
.args(args)
.args(&["-Gn"])
.succeeds()
.stdout_move_str()
}