summaryrefslogtreecommitdiff
diff options
authorUbuntu <ubuntu@cert-jenkins-slave-1-201406-15260.maas>2022-03-01 15:25:21 +0000
committerUbuntu <ubuntu@cert-jenkins-slave-1-201406-15260.maas>2022-03-01 15:25:21 +0000
commitd0f6ab7f574cbaff3f843934b015f883cdd93ae6 (patch)
tree5b7812668ac5a22cee4f16044bdaab796c12b448
parenta924f1bf73787b8a0bb2cee8c990768f59010600 (diff)
parent042bf39bb2058e36f88df5d89155c3c4dbb6fe9e (diff)
Merge #416196 from ~kissiel/plainbox-provider-checkbox:zapperify-edid
-rwxr-xr-xbin/edid_cycle.py9
-rw-r--r--units/pig/test-plan.pxu16
-rw-r--r--units/zapper/jobs.pxu (renamed from units/pig/jobs.pxu)7
-rw-r--r--units/zapper/resource.pxu (renamed from units/pig/resource.pxu)0
-rw-r--r--units/zapper/test-plan.pxu16
5 files changed, 22 insertions, 26 deletions
diff --git a/bin/edid_cycle.py b/bin/edid_cycle.py
index e327cb0..64069cf 100755
--- a/bin/edid_cycle.py
+++ b/bin/edid_cycle.py
@@ -3,12 +3,10 @@
This program tests whether the system changes the resolution automatically
when supplied with a new EDID information.
-To run the test RaspberryPi equipped with a HDMI->CSI-2 bridge is needed. See
-here for details:
-https://docs.google.com/document/d/1kjgaazt2IMskn_HPjN7adXYx1O5zXc39DRayZ0PYh9Y
+To run the test you need Zapper board connected and set up.
The command-line argument for the program is the address of the RaspberryPi
-Host (optionally with a username), e.g.: pi@192.168.1.100
+Host (optionally with a username), e.g.: ubuntu@192.168.1.100
"""
import os
import re
@@ -28,8 +26,7 @@ def check_resolution():
def change_edid(host, edid_file):
with open(edid_file, 'rb') as f:
- cmd = ['ssh', host, '/snap/bin/pigbox', 'run',
- '\'v4l2-ctl --set-edid=file=-,'
+ cmd = ['ssh', host, '\'v4l2-ctl --set-edid=file=-,'
'format=raw --fix-edid-checksums\'']
subprocess.check_output(cmd, input=f.read())
diff --git a/units/pig/test-plan.pxu b/units/pig/test-plan.pxu
deleted file mode 100644
index 071a927..0000000
--- a/units/pig/test-plan.pxu
+++ /dev/null
@@ -1,16 +0,0 @@
-id: pig-enabled-full
-unit: test plan
-_name: Tests using Pi Testing Rig
-_description: Tests using Pi Testing Rig
-include:
-nested_part:
- pig-enabled-automated
-
-id: pig-enabled-automated
-unit: test plan
-_name: Tests using Pi Testing Rig (Automated)
-_description: Tests using Pi Testing Rig (Automated)
-include:
- monitor/pig-edid
-bootstrap_include:
- pig
diff --git a/units/pig/jobs.pxu b/units/zapper/jobs.pxu
index b3702ab..acf65f1 100644
--- a/units/pig/jobs.pxu
+++ b/units/zapper/jobs.pxu
@@ -1,8 +1,7 @@
-id: monitor/pig-edid
+id: monitor/zapper-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"
+environ: ZAPPER_HOST
+command: edid_cycle.py "$ZAPPER_HOST"
diff --git a/units/pig/resource.pxu b/units/zapper/resource.pxu
index 81b9d19..81b9d19 100644
--- a/units/pig/resource.pxu
+++ b/units/zapper/resource.pxu
diff --git a/units/zapper/test-plan.pxu b/units/zapper/test-plan.pxu
new file mode 100644
index 0000000..ce287ff
--- /dev/null
+++ b/units/zapper/test-plan.pxu
@@ -0,0 +1,16 @@
+id: zapper-enabled-full
+unit: test plan
+_name: Tests using Zapper
+_description: Tests using Zapper
+include:
+nested_part:
+ zapper-enabled-automated
+
+id: zapper-enabled-automated
+unit: test plan
+_name: Tests using Zapper
+_description: Tests using Zapper
+include:
+ monitor/pig-edid
+bootstrap_include:
+ pig