summaryrefslogtreecommitdiff
path: root/jobs
diff options
authorDaniel Manrique <roadmr@ubuntu.com>2014-07-25 13:13:03 -0400
committerDaniel Manrique <roadmr@ubuntu.com>2014-07-25 13:13:03 -0400
commita419803ca0f25a8fc8f19b18725efb784d1b80be (patch)
tree28d07afc06aff4ccd3eb49dd97f3c8926f913b9b /jobs
parent74730d51506131ed87cc7e6b32d7b8a3e348d0e4 (diff)
providers:checkbox: Add a simple screen capture job with matching attachment jobplainbox-provider-checkbox-v0.8c1
Diffstat (limited to 'jobs')
-rw-r--r--jobs/graphics.txt.in17
1 files changed, 17 insertions, 0 deletions
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
+
+