diff --git a/test/difftree.sh b/test/difftree.sh index 5f96df0..6b9d34a 100755 --- a/test/difftree.sh +++ b/test/difftree.sh @@ -23,7 +23,7 @@ if [[ ! -d $OBJDIR ]]; then fi cd "$OBJDIR" || exit 1 -for i in $(find * -name '*.o') +for i in $(find ./* -name '*.o') do # copied from kpatch-build/kpatch-gcc; keep in sync case $i in @@ -81,7 +81,7 @@ rm -f "$TEMPDIR/log.txt" > /dev/null 2>&1 cd "$RESULTSDIR" || exit 1 echo "" echo "Results:" -for i in $(find * -iname '*.log') +for i in $(find ./* -iname '*.log') do echo $(cat $i | head -1 | cut -f2-3 -d':') done | sort | uniq -c | sort -n -r | tee "$TEMPDIR/results.log" diff --git a/test/integration/kpatch-test b/test/integration/kpatch-test index 9ef1a10..9706d23 100755 --- a/test/integration/kpatch-test +++ b/test/integration/kpatch-test @@ -49,7 +49,7 @@ KPATCHBUILD="$ROOTDIR"/kpatch-build/kpatch-build ERROR=0 LOG=test.log DYNDEBUG_CONTROL=/sys/kernel/debug/dynamic_debug/control -rm -f *.log +rm -f ./*.log PATCHDIR="${PATCHDIR:-$PWD}" declare -a PATCH_LIST