virtualenv activate contains unbound variables so must be disabled
when calling `source activate`.
Change-Id: I8af6b55962580778fbb349c8164f661c4c462928
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
# Activates the lftools virtualenv
lftools_activate() {
virtualenv --quiet "/tmp/v/lftools"
+ set +u # Ignore unbound variables in activate
# shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
source "/tmp/v/lftools/bin/activate"
+ set -u # Restore unbound variable checking
}