diff options
author | Tom Rini <trini@konsulko.com> | 2023-02-28 13:46:49 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-02-28 13:46:49 -0500 |
commit | 90c2929456ce617aa6659a79429de1b1778515ec (patch) | |
tree | 98191d21dfae9bef89813b7704912d4fdeea35c5 | |
parent | 458b6c86cab3d9b6a48e65c9f13b64be8a8efec0 (diff) | |
download | u-boot-WIP/azure-show-pytest-output.zip u-boot-WIP/azure-show-pytest-output.tar.gz u-boot-WIP/azure-show-pytest-output.tar.bz2 |
Azure CI: Save pytest output automaticallyWIP/azure-show-pytest-output
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>
-rw-r--r-- | .azure-pipelines.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 9aef928..50daa4e 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -88,10 +88,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 |