Don't fail if subunit2junitxml fails

This commit is contained in:
Jean-Paul Calderone 2020-08-10 09:11:14 -04:00
parent a927ebbafa
commit 0c2cf9f0c5
No known key found for this signature in database
GPG Key ID: 86E6F8BAE797C287

View File

@ -88,5 +88,9 @@ if [ -n "${ARTIFACTS}" ]; then
# Create a junitxml results area.
mkdir -p "$(dirname "${JUNITXML}")"
cat "${SUBUNIT2}" | ${BOOTSTRAP_VENV}/bin/subunit2junitxml
# Always succeed even if subunit2junitxml fails. subunit2junitxml signals
# failure if the stream it is processing contains test failures. This is
# not what we care about. If we cared about it, the test command above
# would have signalled failure already and we wouldn't be here.
"${BOOTSTRAP_VENV}"/bin/subunit2junitxml < "${SUBUNIT2}" > "${JUNITXML}" || true
fi