mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
docker-py: output junit.xml for test-results
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 5969bbee79
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
16639f549e
commit
70303ded8e
2 changed files with 8 additions and 2 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -80,6 +80,11 @@ pipeline {
|
|||
test-docker-py
|
||||
'''
|
||||
}
|
||||
post {
|
||||
always {
|
||||
junit testResults: 'bundles/test-docker-py/junit-report.xml', allowEmptyResults: true
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("Static") {
|
||||
steps {
|
||||
|
|
|
@ -17,6 +17,7 @@ source hack/make/.integration-test-helpers
|
|||
--deselect=tests/integration/api_exec_test.py::ExecDemuxTest::test_exec_command_tty_stream_no_demux \
|
||||
--deselect=tests/integration/api_build_test.py::BuildTest::test_build_invalid_platform \
|
||||
--deselect=tests/integration/api_image_test.py::PullImageTest::test_pull_invalid_platform \
|
||||
--junitxml=${DEST}/junit-report.xml \
|
||||
}"
|
||||
(
|
||||
bundle .integration-daemon-start
|
||||
|
@ -56,8 +57,8 @@ source hack/make/.integration-test-helpers
|
|||
echo INFO: Starting docker-py tests...
|
||||
(
|
||||
[ -n "${TESTDEBUG}" ] && set -x
|
||||
# shellcheck disable=SC2086
|
||||
exec docker run --rm ${run_opts} "${docker_py_image}" pytest ${PY_TEST_OPTIONS} tests/integration
|
||||
# shellcheck disable=SC2086,SC2140
|
||||
exec docker run --rm ${run_opts} --mount type=bind,"src=${ABS_DEST}","dst=/src/${DEST}" "${docker_py_image}" pytest ${PY_TEST_OPTIONS} tests/integration
|
||||
)
|
||||
bundle .integration-daemon-stop
|
||||
) 2>&1 | tee -a "$DEST/test.log"
|
||||
|
|
Loading…
Reference in a new issue