screenshot_validation job will fail with sample picture missing error

Bug #1536926 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Fix Released
High
Sylvain Pineau

Bug Description

I found the recent SRU all failed with the following error in the graphics/screenshot_opencv_validation test:

Traceback (most recent call last):
  File "/tmp/nest-jj20h32u.44a1f4790864535582248a11115ef194e34542e6a6feee296492ae12f0e374da/screenshot_validation", line 89, in <module>
    if not imghdr.what(args.input):
  File "/usr/lib/python2.7/imghdr.py", line 14, in what
    f = open(file, 'rb')
IOError: [Errno 2] No such file or directory: '/images/logo_Ubuntu_stacked_black.png'

This png file could be found in the /usr/share/plainbox-provider-checkbox/data/images directory.

Job command:
 screenshot_validation \
    ${PLAINBOX_PROVIDER_DATA}/images/logo_Ubuntu_stacked_black.png \
    --device=${EXTERNAL_WEBCAM_DEVICE:-/dev/external_webcam} \
    -o ${PLAINBOX_SESSION_SHARE}/screenshot_opencv_validation.jpg

It seem that the ${PLAINBOX_PROVIDER_DATA} variable is missing.

Related branches

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Another job with "$PLAINBOX_PROVIDER_DATA" variable works fine, the suspend/bluetooth_obex_send_before_suspend job.

INFO: =================================[ Send test ]==================================
INFO: Using JPEG_Color_Image_Ubuntu.jpg as a test file
INFO: Sending /usr/share/plainbox-provider-checkbox/data/images/JPEG_Color_Image_Ubuntu.jpg to 00:02:72:3E:83:D6
INFO: PASS

Changed in plainbox-provider-checkbox:
assignee: nobody → Sylvain Pineau (sylvain-pineau)
status: New → In Progress
importance: Undecided → High
Changed in plainbox-provider-checkbox:
milestone: none → 0.26
Po-Hsu Lin (cypressyew)
Changed in plainbox-provider-checkbox:
status: In Progress → Fix Committed
Pierre Equoy (pieq)
Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.