mirror of
https://github.com/StackExchange/blackbox.git
synced 2025-12-15 19:13:01 +02:00
"make confidence": Use GID numbers, not names. Makes tests less fragile.
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user