build_library: Add another build root check

The `/build` directory should never exist in the image. If it happens,
it means that there was some leak from SDK into the image.
This commit is contained in:
Krzesimir Nowak 2021-11-08 15:24:07 +01:00
parent 702a1bad01
commit c969c92652

View File

@ -79,5 +79,14 @@ test_image_content() {
returncode=1
fi
# TODO: merge this check with the blacklisted directories above,
# when it stops being a warning-only check.
if [ -d "${root}/build" ]; then
error "test_image_content: ${root}/build directory found"
info "contents of ${root}/build"
ls -lAR "${root}/build"
returncode=1
fi
return $returncode
}