Fix: Install yq through lf-activate-venv
[releng/global-jjb.git] / shell / jjb-verify-build-nodes.sh
index b4457e4..c37af67 100644 (file)
@@ -34,18 +34,20 @@ jjbdir="jjb"
 # function to test if the argument is empty,
 # is two double quotes, or has unwanted suffix
 isBadLabel () {
-  local label="$1"
-  [[ -z "$label" ]] || [[ $label = "\"\"" ]] || [[ $label = *"$suffix" ]]
+    local label="$1"
+    [[ -z "$label" ]] || [[ $label = "\"\"" ]] || [[ $label = *"$suffix" ]]
 }
 
 # function to search an array for a value
 # $1 is value
 # $2 is array, passed via ${array[@]}
 isValueInArray () {
-  local e match="$1"
-  shift
-  for e; do [[ "$e" == "$match" ]] && return 0; done
-  return 1
+    local e match="$1"
+    shift
+    for e; do
+        [[ "$e" == "$match" ]] && return 0
+    done
+    return 1
 }
 
 # check prereqs
@@ -98,6 +100,15 @@ if [[ -n ${EXTERNAL_LABELS:-} ]]; then
     done
 fi
 
+# shellcheck disable=SC1090
+source ~/lf-env.sh
+
+lf-activate-venv yq
+
+# show installed versions
+python -m pip --version
+python -m pip freeze
+
 echo "INFO: label list has ${#labels[@]} entries:"
 echo "INFO:" "${labels[@]}"