From a419803ca0f25a8fc8f19b18725efb784d1b80be Mon Sep 17 00:00:00 2001 From: Daniel Manrique Date: Fri, 25 Jul 2014 13:13:03 -0400 Subject: providers:checkbox: Add a simple screen capture job with matching attachment job --- jobs/graphics.txt.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'jobs') diff --git a/jobs/graphics.txt.in b/jobs/graphics.txt.in index e05d51f..92ac3e1 100644 --- a/jobs/graphics.txt.in +++ b/jobs/graphics.txt.in @@ -533,3 +533,20 @@ command: base64 ${PLAINBOX_SESSION_SHARE}/screenshot_opencv_validation.jpg _description: Attaches the screenshot captured in graphics/screenshot_opencv_validation. _summary: Attach the screenshot captured for the automatically validated screenshot test +plugin: shell +id: graphics/screen-capture-internal +_summary: Obtains a simple screen capture +estimated_duration: 1.0 +requires: package.name == 'gnome-screenshot' +command: gnome-screenshot --file ${PLAINBOX_SESSION_SHARE}/screen-capture.png +_description: Obtains a simple screen capture using gnome-screenshot if present + +plugin: attachment +id: screen-capture-internal.png +_summary: Attaches a simple screen capture +estimated_duration: 1.0 +depends: graphics/screen-capture-internal +command: [ -f ${PLAINBOX_SESSION_SHARE}/screen-capture.png ] && base64 ${PLAINBOX_SESSION_SHARE}/screen-capture.png +_description: Attaches the simple screen capture file + + -- cgit v1.2.3