Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Jan 8, 2025
1 parent ec9ef68 commit 4bf4b83
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion commands/fs-own
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function fs_own_test() (
root="$(fs-temp --directory)"
dir="$(fs-temp --root="$root" --directory='dir' --touch)"
file="$(fs-temp --root="$root" --file='file' --touch)"
subfile="$(fs-temp --root="$dir" --file='subfile' --touch)"

fs-structure -- "$root"

Expand Down Expand Up @@ -54,7 +55,17 @@ function fs_own_test() (
eval-tester --name='can own a directory +quiet +root' --ignore-stdout --ignore-stderr \
-- fs-own --verbose --root -- "$dir"

fs-structure -- "$root"
fs-structure -- "$root" || :
eval-helper --no-quiet --wrap -- is-accessible.bash -- "$dir" || :
eval-helper --no-quiet --wrap -- is-accessible -- "$dir" || :
eval-helper --no-quiet --wrap -- stat -L "$dir" || :
sudo-helper --wrap -- stat -L "$dir" || :

fs-structure -- "$dir" || :
eval-helper --no-quiet --wrap -- is-accessible.bash -- "$subfile" || :
eval-helper --no-quiet --wrap -- is-accessible -- "$subfile" || :
eval-helper --no-quiet --wrap -- stat -L "$subfile" || :
sudo-helper --wrap -- stat -L "$subfile" || :

echo-style --g1="TEST: $0"
return 0
Expand Down

0 comments on commit 4bf4b83

Please sign in to comment.