canonical / checkbox

Checkbox is a testing framework used to validate device compatibility with Ubuntu Linux. It’s the testing tool developed for the purposes of the Ubuntu Certification program.
https://checkbox.readthedocs.io
GNU General Public License v3.0
33 stars 50 forks source link

Correct the camera job cmd with right camera tests (Bugfix) #1515

Closed seankingyang closed 1 month ago

seankingyang commented 1 month ago

Description

Correct job cmd the id: camera/display_{name} and id: camera/still_{name}.

I saw it updated in #1400 's commit, but missing after the PR merged.

Resolved issues

-----------[ Webcam still image capture test for Intel_MIPI_Camera ]------------
ID: com.canonical.certification::camera/still_video0
Category: com.canonical.plainbox::camera
Purpose:

This test will check that the Intel_MIPI_Camera works

Steps:

1. Click on Test to display a still image from the camera for ten seconds.

Pick an action
    => press ENTER to continue
  c => add a comment
  s => skip this job
  q => save the session and quit
[csq]: 
... 8< -------------------------------------------------------------------------
usage: camera_test.py [-h] [--debug] {detect,led,video,image,resolutions} ...
camera_test.py: error: argument test: invalid choice: 'still' (choose from 'detect', 'led', 'video', 'image', 'resolutions')
------------------------------------------------------------------------- >8 ---

--------------[ Webcam video display test for Intel_MIPI_Camera ]---------------
ID: com.canonical.certification::camera/display_video0
Category: com.canonical.plainbox::camera
Purpose:

This test will check that the Intel_MIPI_Camera camera works

Steps:

1. Click on Test to display a video capture from the camera for ten seconds.

Pick an action
    => press ENTER to continue
  c => add a comment
  s => skip this job
  q => save the session and quit
[csq]: 
... 8< -------------------------------------------------------------------------
usage: camera_test.py [-h] [--debug] {detect,led,video,image,resolutions} ...
camera_test.py: error: argument test: invalid choice: 'display' (choose from 'detect', 'led', 'video', 'image', 'resolutions')

Documentation

Tests

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 47.56%. Comparing base (0463efb) to head (2b08908). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1515 +/- ## ======================================= Coverage 47.56% 47.56% ======================================= Files 369 369 Lines 39596 39596 Branches 6691 6691 ======================================= Hits 18833 18833 Misses 20051 20051 Partials 712 712 ``` | [Flag](https://app.codecov.io/gh/canonical/checkbox/pull/1515/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | Coverage Δ | | |---|---|---| | [provider-base](https://app.codecov.io/gh/canonical/checkbox/pull/1515/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | `24.04% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.