diff options
author | Tom Rini <trini@konsulko.com> | 2023-02-28 15:28:49 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-03-21 21:04:09 -0400 |
commit | 542ae5234e38945ff04124aaaa3a26fb6c4d6f7d (patch) | |
tree | d6856d9b5f5125cf85d672f91ccb1eac1cc1ae81 /.azure-pipelines.yml | |
parent | be566abd0ff3c917d91e1435948a5f900133e011 (diff) | |
download | u-boot-542ae5234e38945ff04124aaaa3a26fb6c4d6f7d.tar.gz |
Azure CI: Be explicit about pytest cache directory
The default pytest cache directory is in a read-only directory in Azure,
which results in a warning on the build page. Use the pytest command
line option to set the cache dir to somewhere writable.
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to '.azure-pipelines.yml')
-rw-r--r-- | .azure-pipelines.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index ce291d60b9..5594a67d6b 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -430,7 +430,7 @@ stages: 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" --report-dir "$UBOOT_TRAVIS_BUILD_DIR"; + ./test/py/test.py -ra -o cache_dir="$UBOOT_TRAVIS_BUILD_DIR"/.pytest_cache --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 |