aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini2023-02-28 15:28:48 -0500
committerTom Rini2023-03-21 21:04:09 -0400
commitbe566abd0ff3c917d91e1435948a5f900133e011 (patch)
treed61eb5b1a6f0b1209e4e0d0c1ef12b9f002e3571
parente3059db90b699c6ab595bbb54dec95b9d2dc7a6b (diff)
Azure CI: Save pytest output automatically
Enable use of the python-azurepipelines package which provides automatic formatting and uploading of the pytest output. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--.azure-pipelines.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
index 84eebed329a..ce291d60b9d 100644
--- a/.azure-pipelines.yml
+++ b/.azure-pipelines.yml
@@ -426,10 +426,11 @@ stages:
virtualenv -p /usr/bin/python3 /tmp/venv
. /tmp/venv/bin/activate
pip install -r test/py/requirements.txt
+ pip install pytest-azurepipelines
export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
# "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
- ./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID} ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR";
+ ./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID} ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR" --report-dir "$UBOOT_TRAVIS_BUILD_DIR";
# the below corresponds to .gitlab-ci.yml "after_script"
rm -rf /tmp/uboot-test-hooks /tmp/venv
EOF