summaryrefslogtreecommitdiff
path: root/units
diff options
authorPMR <pmr@pmr-lander>2019-12-19 15:15:57 +0000
committerPMR <pmr@pmr-lander>2019-12-19 15:15:57 +0000
commitc3819c208818c73bb94caa8497b60607018cd66d (patch)
tree1e3196ae5cf2e7cba808194c2ded8beb9a086a07 /units
parent7899c55f4ac4f2bc98337b62c1debe77ccead729 (diff)
parent6fa95f482b6d63f78c37937942ac86586a28f126 (diff)
Merge #376987 from ~jocave/plainbox-provider-checkbox:chameleon-hotplug
Diffstat (limited to 'units')
-rw-r--r--units/monitor/jobs.pxu16
1 files changed, 3 insertions, 13 deletions
diff --git a/units/monitor/jobs.pxu b/units/monitor/jobs.pxu
index df1bb95..59efbf7 100644
--- a/units/monitor/jobs.pxu
+++ b/units/monitor/jobs.pxu
@@ -403,17 +403,7 @@ plugin: shell
category_id: com.canonical.plainbox::monitor
_summary: Automated HDMI hotplug test
_description:
- This test will use edid injector on muxpi to check if system detect HDMI hotplug
-environ: HDMI_PORT MUXPI_IP
-requires: manifest.has_muxpi_hdmi == 'True'
-imports: from com.canonical.plainbox import manifest
+ Use chamleon board to simulate connection/disconnection of an HDMI monitor.
+environ: HDMI_PORT CHAMELEON_IP
command:
- export SSH_OPTS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
- timeout 60 ssh $SSH_OPTS ubuntu@$MUXPI_IP "stm -hdmi off" || exit 1
- sleep 3
- timeout 60 ssh $SSH_OPTS ubuntu@$MUXPI_IP "stm -hdmi on" || exit 1
- sleep 3
- if [ "$(cat /sys/class/drm/$HDMI_PORT/status)" != "connected" ] ;then exit 1; fi
- timeout 60 ssh $SSH_OPTS ubuntu@$MUXPI_IP "stm -hdmi off" || exit 1
- sleep 3
- if [ "$(cat /sys/class/drm/$HDMI_PORT/status)" != "disconnected" ] ;then exit 1; fi
+ chameleon_hdmi_hotplug.py $HDMI_PORT $CHAMELEON_IP