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:
parent
c2162365fc
commit
fc8522cc97
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue