run-unit-test-docker.sh: Make capitalisation of DISTRO consistent
Previously the script required $distro be set in the environment, but
used $DISTRO internally. This is confusing, so require the capitalised
version always.
Hopefully this won't break any external scripts.
Tested: Ran /bin/bash -n on the script, parsed without failure.
Change-Id: I64eea6638c3a9a28138495f7b849373486323d6f
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/run-unit-test-docker.sh b/run-unit-test-docker.sh
index 2048d1b..3d354e8 100755
--- a/run-unit-test-docker.sh
+++ b/run-unit-test-docker.sh
@@ -2,17 +2,16 @@
# This build script is for running the Jenkins unit test builds using docker.
#
-# It uses a few variables which are part of Jenkins build job matrix:
-# distro = fedora|ubuntu|ubuntu:14.04|ubuntu:16.04
-# dbus_sys_config_file = <path of the dbus config file>
+# DISTRO = Docker base image. Ubuntu and Fedora are supported.
# WORKSPACE = <location of unit test execution script>
+# dbus_sys_config_file = <path of the dbus config file>
# Trace bash processing. Set -e so when a step fails, we fail the build
set -uo pipefail
# Default variables
DOCKER_IMG_NAME="openbmc/ubuntu-unit-test"
-DISTRO=${distro:-ubuntu:latest}
+DISTRO=${DISTRO:-ubuntu:latest}
WORKSPACE=${WORKSPACE:-${TMP}/unit-test${RANDOM}}
OBMC_BUILD_SCRIPTS="openbmc-build-scripts"
UNIT_TEST_PY_DIR="scripts"