Complete remaining TODOs in unit test script
Updated docker image unit test script, fixing the following TODOs:
- Replace os.system calls with subprocess.check_call
- Support possible configure.ac line breaks ('\')
- Updated 'make check' call fails Jenkins
Also added helpful command prints for Jenkins console
Change-Id: I6ba3986165b8d313228bcaa611df17bd213447eb
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/run-unit-test-docker.sh b/run-unit-test-docker.sh
index a5a43b8..7ebb0a9 100755
--- a/run-unit-test-docker.sh
+++ b/run-unit-test-docker.sh
@@ -55,10 +55,9 @@
# Run the docker unit test container with the unit test execution script
echo "Executing docker image"
docker run --cap-add=sys_admin --rm=true \
- -e WORKSPACE=${WORKSPACE}/ \
- -e UNIT_TEST_PKG=${UNIT_TEST_PKG} \
-w "${WORKSPACE}" -v "${WORKSPACE}":"${WORKSPACE}" \
- -t ${DOCKER_IMG_NAME} ${WORKSPACE}/${UNIT_TEST_PY}
+ -t ${DOCKER_IMG_NAME} \
+ ${WORKSPACE}/${UNIT_TEST_PY} -w ${WORKSPACE} -p ${UNIT_TEST_PKG} -v
# Timestamp for build
echo "Unit test build completed, $(date)"