From dfdb252dbd69ccf7e09c5fa4dc0913a909b35d73 Mon Sep 17 00:00:00 2001 From: Daniel Santos-Olivan Date: Wed, 3 Mar 2021 16:04:57 +0100 Subject: [PATCH] Fix output to xml --- Util/BuildTools/Check.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Util/BuildTools/Check.sh b/Util/BuildTools/Check.sh index fb2a97061..c45847ef6 100755 --- a/Util/BuildTools/Check.sh +++ b/Util/BuildTools/Check.sh @@ -210,11 +210,17 @@ fi pushd "${CARLA_PYTHONAPI_ROOT_FOLDER}/test" >/dev/null +if ${XML_OUTPUT} ; then + EXTRA_ARGS="-c smoke/unittest.cfg -X" +else + EXTRA_ARGS= +fi + if ${SMOKE_TESTS} ; then smoke_list=`cat smoke_test_list.txt` for PY_VERSION in ${PY_VERSION_LIST[@]} ; do log "Running smoke tests for Python ${PY_VERSION}." - /usr/bin/env python${PY_VERSION} -m nose2 -v ${smoke_list} + /usr/bin/env python${PY_VERSION} -m nose2 -v ${EXTRA_ARGS} ${smoke_list} done if ${XML_OUTPUT} ; then