Gitlab: Rework sjg-lab calling test.py to be closer to test.py stage
PATCH 1/1 Gitlab: Rework sjg-lab calling test.py to be closer to test.py stage
There are a few differences between how the test.py stage invokes test.py and how the sjg-lab stage invokes test.py. As a start of making both the code and the output and artifacts similar, this updates the sjg-lab stage with the following:
- Pass "-ra" so that we get the summary information in the job
- Make use of TEST_PY_EXTRA for passing "--capture=tee-sys"
- Re-order some of the arguments to be the same order when possible.
And most importantly:
- Create and save as an artifact the junitxml output.
The last part here is the kind of test result information that in the future we should determine how to archive for future reference.
---
Cc: Simon Glass <[email protected]>
The JUnit part can be seen for example at:
https://source.denx.de/u-boot/u-boot/-/pipelines/26106/test_report?job_name=jerry
--- .gitlab-ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
.gitlab-ci.yml +7 -2
@@ -590,8 +590,10 @@ coreboot test.py: - export strategy="-s uboot -e off" - export USE_LABGRID_SJG=1 # export verbose="-v" - - ${SRC}/test/py/test.py --role ${ROLE} --build-dir "${OUT}" - --capture=tee-sys -k "not bootstd ${TEST_PY_TEST_SPEC}" || ret=$? + - ${SRC}/test/py/test.py -ra --role ${ROLE} ${TEST_PY_EXTRA:-"--capture=tee-sys"} + --build-dir "${OUT}" + ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} + --junitxml=${OUT}/results.xml || ret=$? - U_BOOT_BOARD_IDENTITY="${ROLE}" u-boot-test-release || true - if [[ $ret -ne 0 ]]; then exit $ret;
@@ -601,6 +603,9 @@ coreboot test.py: paths: - "build/${BOARD}/test-log.html" - "build/${BOARD}/multiplexed_log.css" + - "build/${BOARD}/results.xml" + reports: + junit: "build/${BOARD}/results.xml" expire_in: 1 week rpi3:
Signature · 1 line
2.43.0
Quoted 16 lines · Tom Rini
There are a few differences between how the
test.pystage invokestest.pyand how the sjg-lab stage invokestest.py. As a start of making both the code and the output and artifacts similar, this updates the sjg-lab stage with the following:
- Pass "-ra" so that we get the summary information in the job
- Make use ofTEST_PY_EXTRAfor passing "--capture=tee-sys"
- Re-order some of the arguments to be the same order when possible.And most importantly:
- Create and save as an artifact the junitxml output.The last part here is the kind of test result information that in the future we should determine how to archive for future reference.
Signed-off-by Tom Rini <[email protected]>
Quoted 8 lines
---
Cc: Simon Glass <[email protected]>The JUnit part can be seen for example at:
https://source.denx.de/u-boot/u-boot/-/pipelines/26106/test_report?job_name=jerry--- .gitlab-ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Quoted 9 lines · Tom Rini
There are a few differences between how the
test.pystage invokestest.pyand how the sjg-lab stage invokestest.py. As a start of making both the code and the output and artifacts similar, this updates the sjg-lab stage with the following:
- Pass "-ra" so that we get the summary information in the job
- Make use ofTEST_PY_EXTRAfor passing "--capture=tee-sys"
- Re-order some of the arguments to be the same order when possible.[...]
Applied to u-boot/next, thanks!
[1/1] Gitlab: Rework sjg-lab calling test.py to be closer to test.py stage
commit: c7f360f20d848f9e2b607885a280084290732566
Signature · 1 line
Tom