]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/autobuilder-worker-prereq-tests: jinja2 check
authorMichael Halstead <mhalstead@linuxfoundation.org>
Thu, 14 Oct 2021 17:55:43 +0000 (10:55 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Oct 2021 21:39:37 +0000 (22:39 +0100)
Ensure the jinja2 module is available during bringup.

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/autobuilder-worker-prereq-tests

index 5d7e6e260130ae54fd714a130950c6f5a27e8d7c..82e9a77bd5dc72fbcd9a4fa2a3c5cacce2b11ef9 100755 (executable)
@@ -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"