Generate subunit results XML file report
Change-Id: Ibff0dd636d992a5c14c2fc39d55e0f368dc5e792
This commit is contained in:
parent
d05aa842c2
commit
c44d406360
@ -9,11 +9,14 @@ TESTR_DIR=${TESTR_DIR:-$(pwd)}
|
||||
BUILD_DIR=${BUILD_DIR:-${TESTR_DIR}}
|
||||
SUBUNIT_FILE=${SUBUNIT_FILE:-${BUILD_DIR}/last.subunit}
|
||||
TESTR_RESULTS_HTML=${TESTR_RESULTS_HTML:-${BUILD_DIR}/tobiko_results.html}
|
||||
TESTR_RESULTS_XML=${TESTR_RESULTS_XML:-${BUILD_DIR}/tobiko_results.xml}
|
||||
|
||||
|
||||
make_testr_results_html() {
|
||||
mkdir -p "$(dirname ${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_XML}")
|
||||
}
|
||||
|
||||
make_testr_results_html
|
||||
|
@ -4,6 +4,7 @@ ansible>=2.4.0,<2.8.0 # GPLv3
|
||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||
keystoneauth1>=3.4.0 # Apache-2.0
|
||||
Jinja2>=2.8.0 # BSD
|
||||
junitxml>=0.7 # MIT
|
||||
netaddr>=0.7.18 # BSD
|
||||
neutron-lib>=1.25.0 # Apache-2.0
|
||||
os-faults>=0.1.18 # Apache-2.0
|
||||
|
Loading…
Reference in New Issue
Block a user