From 2e8afc00980ee518ffc3428cb040493f582e09eb Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Wed, 14 Aug 2024 20:35:27 +0200 Subject: [PATCH] chore(ci): inspect stat of unecpected permissions --- test/sharness/t0047-add-mode-mtime.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/sharness/t0047-add-mode-mtime.sh b/test/sharness/t0047-add-mode-mtime.sh index 56a3000aea5..47f14fe1e36 100755 --- a/test/sharness/t0047-add-mode-mtime.sh +++ b/test/sharness/t0047-add-mode-mtime.sh @@ -290,8 +290,10 @@ test_directory() { ' test_expect_success "can recursively preserve mode and modification time [$1]" ' - set -x + set -x && test "700:$DIR_TIME" = "$(stat -c "%a:%Y" "$TESTDIR")" && + id && + stat "$TESTDIR/dir2/sub1/sub2/file3" && test "644:$((DIR_TIME+10))" = "$(stat -c "%a:%Y" "$TESTDIR/dir2/sub1/sub2/file3")" && test "777:$((DIR_TIME+20))" = "$(stat -c "%a:%Y" "$TESTDIR/dir2/sub1/link1")" && test "755:$((DIR_TIME+30))" = "$(stat -c "%a:%Y" "$TESTDIR/dir2/sub1/sub2")" &&