1
0
Fork 0
forked from nuttx/nuttx-update

tools/testbuild.sh: check status after make distclean

ensure the distclean remove all generated stuff

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-04-22 00:39:56 +08:00 committed by patacongo
parent c2162365fc
commit fc8522cc97

View file

@ -173,6 +173,19 @@ function distclean {
git -C $APPSDIR clean -xfdq
else
makefunc ${JOPTION} distclean
# Ensure nuttx and apps directory in clean state even with --ignored
if [ -d $nuttx/.git ] || [ -d $APPSDIR/.git ]; then
if [[ -n $(git -C $nuttx status --ignored -s) ]]; then
git -C $nuttx status --ignored
fail=1
fi
if [[ -n $(git -C $APPSDIR status --ignored -s) ]]; then
git -C $APPSDIR status --ignored
fail=1
fi
fi
fi
fi
}