From 5d9d9dc800f88d1632f69aaf633faf4ac5c0cdb1 Mon Sep 17 00:00:00 2001 From: Maciej Kisielewski Date: Thu, 19 Sep 2019 15:20:24 +0200 Subject: modify edid-cycle test to use PIG --- units/pig/jobs.pxu | 8 ++++++++ units/pig/resource.pxu | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 units/pig/jobs.pxu create mode 100644 units/pig/resource.pxu (limited to 'units/pig') diff --git a/units/pig/jobs.pxu b/units/pig/jobs.pxu new file mode 100644 index 00000000..2bbcaa67 --- /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 00000000..eb62e22c --- /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 -- cgit v1.2.3