Fix output to xml

This commit is contained in:
Daniel Santos-Olivan 2021-03-03 16:04:57 +01:00 committed by bernat
parent 8830de82d9
commit dfdb252dbd
1 changed files with 7 additions and 1 deletions

View File

@ -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