"make confidence": Use GID numbers, not names. Makes tests less fragile.

This commit is contained in:
tal@whatexit.org
2016-03-15 21:22:29 -04:00
parent 3a4a79284c
commit 1643ea7fd9
2 changed files with 7 additions and 9 deletions

View File

@@ -63,10 +63,10 @@ function assert_file_group() {
case $(uname -s) in
Darwin|FreeBSD )
found=$(stat -f '%Sg' "$file")
found=$(stat -f '%Dg' "$file")
;;
Linux )
found=$(stat -c '%G' "$file")
found=$(stat -c '%g' "$file")
;;
CYGWIN* )
echo "ASSERT_FILE_GROUP: Running on Cygwin. Not being tested."