scripts/autobuilder-worker-prereq-tests: jinja2 check

Ensure the jinja2 module is available during bringup.

(From OE-Core rev: c46a6ec91bd40a458cb0ef5ec84bc0cc274d9cef)

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Halstead 2021-10-14 10:55:43 -07:00 committed by Richard Purdie
parent 3579782a44
commit 9a7bc68135

View File

@ -35,6 +35,11 @@ if [ "$?" != "0" ]; then
echo "Please set git config --global user.email"
exit 1
fi
python3 -c "import jinja2"
if [ "$?" != "0" ]; then
echo "Please ensure jinja2 is available"
exit 1
fi
bitbake -p
if [ "$?" != "0" ]; then
echo "Bitbake parsing failed"