Skip to content

Commit

Permalink
Added a timeout to camera quality test
Browse files Browse the repository at this point in the history
  • Loading branch information
fernando79513 committed Oct 27, 2023
1 parent 988bea9 commit 9a9b79c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions providers/base/units/camera/jobs.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ _summary: Webcam brisque score for {{ product_slug }}
estimated_duration: 20s
depends: camera/detect
command:
camera_quality_test.py -d {{ name }}
timeout 120 camera_quality_test.py -d {{ name }} ||
(>&2 echo "Timeout computing score"; false)
_description:
Takes multiple pictures and computes the quality based on a No-Reference image
quality assessment algorithm called BRISQUE.
Takes a picture and computes the quality based on a No-Reference image
quality assessment algorithm called BRISQUE. This test will timeout and fail
if the quality has not been compute within 120 seconds.

unit: template
template-resource: device
Expand Down
2 changes: 1 addition & 1 deletion providers/base/units/camera/test-plan.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ _description: Camera tests (automated)
include:
camera/detect certification-status=blocker
camera/multiple-resolution-images_.* certification-status=blocker
camera/camera-quality_.* certification-status=non-blocker
camera/camera-quality_.* certification-status=non-blocker
bootstrap_include:
device

Expand Down

0 comments on commit 9a9b79c

Please sign in to comment.