ci: add body to ui report (#33429)

add body
old-commit-hash: fefb0330d6
This commit is contained in:
Dean Lee 2024-09-02 01:40:41 +08:00 committed by GitHub
parent 333c666a80
commit 9cd2bcbb39
2 changed files with 12 additions and 0 deletions

View File

@ -98,6 +98,10 @@ jobs:
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.number }}/onroad_alert_full.png"></td>
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.number }}/driver_camera.png"></td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot/pr-${{ github.event.number }}/body.png"></td>
<td></td>
</tr>
</table>
comment_tag: run_id_screenshots
pr_number: ${{ github.event.number }}

View File

@ -80,6 +80,13 @@ def setup_onroad_wide_sidebar(click, pm: PubMaster):
setup_onroad_wide(click, pm)
click(500, 500)
def setup_body(click, pm: PubMaster):
DATA['carParams'].carParams.carName = "BODY"
DATA['carParams'].carParams.notCar = True
DATA['carState'].carState.charging = True
DATA['carState'].carState.fuelGauge = 50.0
setup_onroad(click, pm)
def setup_driver_camera(click, pm: PubMaster):
setup_settings_device(click, pm)
click(1950, 435)
@ -140,6 +147,7 @@ CASES = {
"onroad_wide": setup_onroad_wide,
"onroad_wide_sidebar": setup_onroad_wide_sidebar,
"driver_camera": setup_driver_camera,
"body": setup_body,
"offroad_alert": setup_offorad_alert,
"update_available": setup_update_available
}