diff options
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-03-03 02:22:25 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-03-21 21:04:09 -0400 |
commit | e567073018db5e515ea24ddca69f70e0ee33432e (patch) | |
tree | d318851705c85c8eb1d25f3c1c9db79ba2a48283 /.gitlab-ci.yml | |
parent | 542ae5234e38945ff04124aaaa3a26fb6c4d6f7d (diff) | |
download | u-boot-e567073018db5e515ea24ddca69f70e0ee33432e.tar.gz u-boot-e567073018db5e515ea24ddca69f70e0ee33432e.tar.bz2 u-boot-e567073018db5e515ea24ddca69f70e0ee33432e.zip |
CI: gitlab: Collect pytest artifacts
Copy build artifacts for all test.py tests, so they show up in
artifacts storage for later inspection. The test.py tests output
in CI is basically useless, but it is far more useful in the html
output for analysis and debugging.
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Suggested-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8ebe9ac49a..fd5cf7ff50 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,6 +30,7 @@ stages: fi after_script: + - cp -v /tmp/${TEST_PY_BD}/*.{html,css} . - rm -rf /tmp/uboot-test-hooks /tmp/venv script: # If we've been asked to use clang only do one configuration. @@ -76,10 +77,12 @@ stages: ./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" - # It seems that the files in /tmp go away, so copy out what we need - - if [[ "${TEST_PY_BD}" == "coreboot" ]]; then - cp -v /tmp/coreboot/*.{html,css} .; - fi + artifacts: + when: always + paths: + - "*.html" + - "*.css" + expire_in: 1 week build all 32bit ARM platforms: stage: world build @@ -476,9 +479,4 @@ coreboot test.py: TEST_PY_BD: "coreboot" TEST_PY_TEST_SPEC: "not sleep" TEST_PY_ID: "--id qemu" - artifacts: - paths: - - "*.html" - - "*.css" - expire_in: 1 week <<: *buildman_and_testpy_dfn |