tests: Use command ls to avoid indicators

This can happen if your filesystem on macOS has xattrs, so the newly
created dirs will also have them and `ls` will print an "@" indicator.

Fixes #11137

(cherry picked from commit 414293521e)
This commit is contained in:
Fabian Boehm
2025-02-07 12:21:19 +01:00
committed by David Adam
parent d33b967196
commit 6d30751f1c

View File

@@ -10,7 +10,8 @@ $fish -c ''
# Check that existing directories kept their permissions, and new directories
# have the right permissions according to the XDG Base Directory Specification.
ls -ld $dir/old $dir/old/new $dir/old/new/fish | awk '{print $1}'
# Use command ls to turn off indicators in case of xattrs or similar.
command ls -ld $dir/old $dir/old/new $dir/old/new/fish | awk '{print $1}'
# CHECK: drwxr-xr-x
# CHECK: drwx------
# CHECK: drwx------