summaryrefslogtreecommitdiff
path: root/units
diff options
authorMaciej Kisielewski <maciej.kisielewski@canonical.com>2019-09-19 15:20:24 +0200
committerMaciej Kisielewski <maciej.kisielewski@canonical.com>2019-09-24 11:39:33 +0200
commit5d9d9dc800f88d1632f69aaf633faf4ac5c0cdb1 (patch)
tree21a972d8660007b4d7062af259f16b488ecf42c4 /units
parent57b936b03a87463b3301add90753c6bf3a1891c5 (diff)
modify edid-cycle test to use PIG
Diffstat (limited to 'units')
-rw-r--r--units/pig/jobs.pxu8
-rw-r--r--units/pig/resource.pxu5
2 files changed, 13 insertions, 0 deletions
diff --git a/units/pig/jobs.pxu b/units/pig/jobs.pxu
new file mode 100644
index 0000000..2bbcaa6
--- /dev/null
+++ b/units/pig/jobs.pxu
@@ -0,0 +1,8 @@
+id: monitor/pig-edid
+category_id: com.canonical.plainbox::monitor
+plugin: shell
+estimated_duration: 60
+_summary: Check if the system automatically changes the resolution based on EDID
+requires: pig.hdmi_bridge == 'installed'
+environ: PIG_HOST
+command: edid_cycle.py $PIG_HOST
diff --git a/units/pig/resource.pxu b/units/pig/resource.pxu
new file mode 100644
index 0000000..eb62e22
--- /dev/null
+++ b/units/pig/resource.pxu
@@ -0,0 +1,5 @@
+id: pig
+plugin: resource
+_summary: Get Pig's capabilities
+environ: PIG_HOST
+command: ssh -q -o 'StrictHostKeyChecking=no' $PIG_HOST /snap/bin/pigbox capabilities