use subunit2junitxml for junit-xml report otherwise jenkisn can't read the results
[stack@undercloud-0 tobiko]$ subunit2junitxml ./last.subunit -o tobiko_results_junitxml.xml [stack@undercloud-0 tobiko]$ cat tobiko_results_junitxml.xml <testsuite errors="0" failures="0" name="" tests="1" time="4.199"> <testcase classname="tobiko.tests.functional.tripleo.test_overcloud.OvercloudPacemakerTest" name="test_pacemaker_resources_health" time="4.199"/> </testsuite> Change-Id: I7d4f9e00f718500a00af9bdb3f70462b1d79e6fc
This commit is contained in:
parent
23d913d7ea
commit
6094576889
@ -16,7 +16,7 @@ make_testr_results_html() {
|
|||||||
mkdir -p "$(dirname ${SUBUNIT_FILE})"
|
mkdir -p "$(dirname ${SUBUNIT_FILE})"
|
||||||
(cd "${TESTR_DIR}" && stestr last --subunit) > "${SUBUNIT_FILE}"
|
(cd "${TESTR_DIR}" && stestr last --subunit) > "${SUBUNIT_FILE}"
|
||||||
(cd "${BUILD_DIR}" && subunit2html "${SUBUNIT_FILE}" "${TESTR_RESULTS_HTML}")
|
(cd "${BUILD_DIR}" && subunit2html "${SUBUNIT_FILE}" "${TESTR_RESULTS_HTML}")
|
||||||
(cd "${BUILD_DIR}" && subunit2html "${SUBUNIT_FILE}" "${TESTR_RESULTS_XML}")
|
(cd "${BUILD_DIR}" && subunit2junitxml "${SUBUNIT_FILE}" -o "${TESTR_RESULTS_XML}")
|
||||||
}
|
}
|
||||||
|
|
||||||
make_testr_results_html
|
make_testr_results_html
|
||||||
|
Loading…
Reference in New Issue
Block a user