Merge ~sylvain-pineau/checkbox-limerick/+git/checkbox-provider-limerick:firmware-deb into ~checkbox-dev/checkbox-limerick/+git/checkbox-provider-limerick:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: fb6a8d26c4507fa06827a94975e0afdfae5033f1
Merged at revision: e9b44571d825abc422e7db746262ff1067b61c84
Proposed branch: ~sylvain-pineau/checkbox-limerick/+git/checkbox-provider-limerick:firmware-deb
Merge into: ~checkbox-dev/checkbox-limerick/+git/checkbox-provider-limerick:master
Diff against target: 47 lines (+4/-5)
3 files modified
bin/component_test.py (+2/-4)
units/components/jobs.pxu (+1/-1)
units/device/jobs.pxu (+1/-0)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Review via email: mp+391799@code.launchpad.net

Description of the change

Use the firmware deb to load the DTB

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

self-approved

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/bin/component_test.py b/bin/component_test.py
index 4f4c4ba..eb296aa 100755
--- a/bin/component_test.py
+++ b/bin/component_test.py
@@ -20,15 +20,13 @@
20# along with Checkbox. If not, see <http://www.gnu.org/licenses/>.20# along with Checkbox. If not, see <http://www.gnu.org/licenses/>.
2121
22import codecs22import codecs
23import glob
24import os23import os
25import re24import re
26import subprocess25import subprocess
27import sys26import sys
2827
29p = glob.glob('/usr/lib/firmware/*/device-tree/{}'.format(28p = '/usr/share/{}'.format(codecs.decode("kyak-svezjner", "rot-13"))
30 codecs.decode("kvyvak", "rot-13")))[0]29dtb = os.path.join(p, sys.argv[1], '{}_system.dtb'.format(sys.argv[1]))
31dtb = os.path.join(p, '{}.dtb'.format(sys.argv[1]))
32dt_lookup_list = []30dt_lookup_list = []
33exit_status = 031exit_status = 0
3432
diff --git a/units/components/jobs.pxu b/units/components/jobs.pxu
index 524bcd6..2968ef1 100644
--- a/units/components/jobs.pxu
+++ b/units/components/jobs.pxu
@@ -2,7 +2,7 @@ unit: template
2template-resource: limerick_sku2template-resource: limerick_sku
3id: dtb/components_{name}3id: dtb/components_{name}
4_summary: Check all DTB compatible properties are loaded in /proc/device-tree4_summary: Check all DTB compatible properties are loaded in /proc/device-tree
5command: component_test.py {name}5command: component_test.py {short_name}
6plugin: shell6plugin: shell
7category_id: dtb_components7category_id: dtb_components
8estimated_duration: 1m8estimated_duration: 1m
diff --git a/units/device/jobs.pxu b/units/device/jobs.pxu
index 3a9fde5..19b36d1 100644
--- a/units/device/jobs.pxu
+++ b/units/device/jobs.pxu
@@ -20,6 +20,7 @@ plugin: resource
20_summary: Detect which Limerick SKU the tool is running on20_summary: Detect which Limerick SKU the tool is running on
21command:21command:
22 perl -ne 's/ /-/g;s/(.*?)([A-Z]?)\W+$/\L$1\U$2/; print "name: $_\n"' /proc/device-tree/model22 perl -ne 's/ /-/g;s/(.*?)([A-Z]?)\W+$/\L$1\U$2/; print "name: $_\n"' /proc/device-tree/model
23 perl -ne 's/.*?\s(\S+).*/$1/i; print "short_name: \L$_\n\n"' /proc/device-tree/model
23estimated_duration: 1s24estimated_duration: 1s
2425
25id: device-connections-tp26id: device-connections-tp

Subscribers

People subscribed via source and target branches