From 6d30751f1c1f2dd944f0b82175a105b3a0ba0d85 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Fri, 7 Feb 2025 12:21:19 +0100 Subject: [PATCH] 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 414293521ee3b32b6f462f17514d86147e10e249) --- tests/checks/create-base-directories.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/checks/create-base-directories.fish b/tests/checks/create-base-directories.fish index 1dc97891d..55b435d90 100644 --- a/tests/checks/create-base-directories.fish +++ b/tests/checks/create-base-directories.fish @@ -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------