1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 13:38:12 +00:00

fix(tests): include missing UI report into model R's device tests

[no changelog]
This commit is contained in:
grdddj 2023-06-13 10:17:33 +02:00 committed by Jiří Musil
parent 84555c2ea3
commit 66bd48d426

View File

@ -89,14 +89,14 @@ core device R test:
variables: variables:
TREZOR_PROFILING: "1" TREZOR_PROFILING: "1"
TREZOR_MODEL: "R" TREZOR_MODEL: "R"
MULTICORE: 4 # more could interfere with other jobs
script: script:
- nix-shell --run "poetry run make -C core test_emu_ui | ts -s" - $NIX_SHELL --run "poetry run make -C core test_emu_ui_multicore | ts -s"
after_script: after_script:
- mv tests/ui_tests/reporting/reports/test/ test_ui_report - mv core/src/.coverage.* core # there will be more coverage files (one per core)
- nix-shell --run "poetry run python ci/prepare_ui_artifacts.py TR | ts -s" - mv tests/ui_tests/reports/test/ test_ui_report
- diff tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json - $NIX_SHELL --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
- nix-shell --run "cd tests/ui_tests ; poetry run python reporting/report_master_diff.py TR_" - diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
- mv tests/ui_tests/reporting/reports/master_diff/ .
artifacts: artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
paths: paths:
@ -106,9 +106,9 @@ core device R test:
- tests/ui_tests/fixtures.suggestion.json - tests/ui_tests/fixtures.suggestion.json
- tests/junit.xml - tests/junit.xml
- tests/trezor.log - tests/trezor.log
- master_diff - core/.coverage.*
when: always when: always
expire_in: 4 weeks expire_in: 1 week
reports: reports:
junit: tests/junit.xml junit: tests/junit.xml