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 <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2017-07-19 22:13:16 +02:00
parent 6c5b54e18f
commit 17fe667db7

View File

@@ -15,7 +15,12 @@ test_description='test untracked cache'
# more.
sync_mtime () {
find . -type d -ls >/dev/null
if test_have_prereq BUSYBOX
then
find . -type d -print0 | xargs -0r ls -ld >/dev/null
else
find . -type d -ls >/dev/null
fi
}
avoid_racy() {