diff --git a/test/gidmapping.sh b/test/gidmapping.sh index 1415bbc8..45a34525 100755 --- a/test/gidmapping.sh +++ b/test/gidmapping.sh @@ -3,8 +3,8 @@ TRY_TOP="${TRY_TOP:-$(git rev-parse --show-toplevel --show-superproject-working-tree)}" TRY="$TRY_TOP/try" -control=$(id -G) -testing=$("$TRY" id -G 2>/dev/null) +control=$(id -Gn) +testing=$("$TRY" -n id -Gn 2>/dev/null) if [ "$control" = "$testing" ] then diff --git a/test/uidmapping.sh b/test/uidmapping.sh index 395a4000..55430208 100755 --- a/test/uidmapping.sh +++ b/test/uidmapping.sh @@ -3,8 +3,8 @@ TRY_TOP="${TRY_TOP:-$(git rev-parse --show-toplevel --show-superproject-working-tree)}" TRY="$TRY_TOP/try" -control=$(id) -testing=$(sudo "$TRY" -u "$USER" id) +control=$(id -un) +testing=$(sudo "$TRY" -n -u "$USER" id -un) if [ "$control" = "$testing" ] then