Skip to content

Commit e41586b

Browse files
committed
t7063: when running under BusyBox, avoid unsupported find option
BusyBox' find implementation does not understand the -ls option, so let's not use it when we're running inside BusyBox. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent c167220 commit e41586b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

t/t7063-status-untracked-cache.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ test_description='test untracked cache'
1515
# more.
1616

1717
sync_mtime () {
18-
find . -type d -ls >/dev/null
18+
if test_have_prereq BUSYBOX
19+
then
20+
find . -type d -print0 | xargs -0r ls -ld >/dev/null
21+
else
22+
find . -type d -ls >/dev/null
23+
fi
1924
}
2025

2126
avoid_racy() {

0 commit comments

Comments
 (0)