test/difftree.sh: Silence warning about looping over find output

Shellcheck emits the following warning:
SC2044: For loops over find output are fragile. Use find -exec or a while read loop.

Disable it for now.

Signed-off-by: Julien Thierry <jthierry@redhat.com>
This commit is contained in:
Julien Thierry 2020-06-03 09:26:12 +01:00
parent ac2d6e3759
commit f876aed900
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ if [[ ! -d $OBJDIR ]]; then
fi
cd "$OBJDIR" || exit 1
# shellcheck disable=SC2044
for i in $(find ./* -name '*.o')
do
# copied from kpatch-build/kpatch-gcc; keep in sync
@ -81,6 +82,7 @@ rm -f "$TEMPDIR/log.txt" > /dev/null 2>&1
cd "$RESULTSDIR" || exit 1
echo ""
echo "Results:"
# shellcheck disable=SC2044
for i in $(find ./* -iname '*.log')
do
head -1 "$i" | cut -f2-3 -d':'