summaryrefslogtreecommitdiff
diff options
authorPMR <pmr@pmr-lander>2019-10-25 16:13:34 +0000
committerPMR <pmr@pmr-lander>2019-10-25 16:13:34 +0000
commit6924462a362fd91cd0fb547d52ad411424b08613 (patch)
tree82e93c61c487108ad24b7da078ccd4d29db06c2a
parentbf4db70cdcd0e2aade886db21172f94d85675a8f (diff)
parent3eaa63c95c839cb3028709ef0193e5f59863e40d (diff)
Merge #374528 from ~jocave/plainbox-provider-checkbox:add-gpio-loopback-manifestsnap-2019-11-05T1407
-rw-r--r--units/gpio/jobs.pxu4
-rw-r--r--units/gpio/manifest.pxu5
2 files changed, 9 insertions, 0 deletions
diff --git a/units/gpio/jobs.pxu b/units/gpio/jobs.pxu
index ec1e948..07def1e 100644
--- a/units/gpio/jobs.pxu
+++ b/units/gpio/jobs.pxu
@@ -14,6 +14,8 @@ command:
gpio_sysfs_loopback.py {model}
estimated_duration: 20.0
flags: preserve-locale also-after-suspend
+imports: from com.canonical.plainbox import manifest
+requires: manifest.gpio_loopback == 'True'
# Filtering this job by the same devices as above as uses the same pin
@@ -31,6 +33,8 @@ command:
gpio_gpiomem_loopback.py {model}
estimated_duration: 20.0
flags: preserve-locale also-after-suspend
+imports: from com.canonical.plainbox import manifest
+requires: manifest.gpio_loopback == 'True'
# If starting to test confinement then this connection will be requried:
#requires:
# {%- if __on_ubuntucore__ %}
diff --git a/units/gpio/manifest.pxu b/units/gpio/manifest.pxu
new file mode 100644
index 0000000..d7174ca
--- /dev/null
+++ b/units/gpio/manifest.pxu
@@ -0,0 +1,5 @@
+unit: manifest entry
+id: gpio_loopback
+prompt: Does this device have the following?:
+_name: GPIO Loopback Connector
+value-type: bool \ No newline at end of file