Merge ~sylvain-pineau/plainbox-provider-resource:wifi_interface_mode into plainbox-provider-resource:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: c216ebbbe9e007753173b7f6268c34b0014583d1
Merged at revision: f361d3cc9ae28d2ec798a9a163ceb3d0904a5c4d
Proposed branch: ~sylvain-pineau/plainbox-provider-resource:wifi_interface_mode
Merge into: plainbox-provider-resource:master
Diff against target: 22 lines (+11/-0)
1 file modified
jobs/resource.pxu (+11/-0)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Review via email: mp+322753@code.launchpad.net

Description of the change

Add one resource job coming from the snappy resource provider

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
1diff --git a/jobs/resource.pxu b/jobs/resource.pxu
2index 29c5a45..3194a5d 100644
3--- a/jobs/resource.pxu
4+++ b/jobs/resource.pxu
5@@ -325,6 +325,17 @@ command:
6 for test in `mir_integration_tests --gtest_list_tests | sed -n '/\.$/s/\.$//p'`; do echo "category: integration"; echo "name: $test"; echo ""; done
7 for test in `mir_acceptance_tests --gtest_list_tests | sed -n '/\.$/s/\.$//p'`; do echo "category: acceptance"; echo "name: $test"; echo ""; done
8
9+id: wifi_interface_mode
10+estimated_duration: 0.1
11+plugin: resource
12+command:
13+ for i in `iw dev | grep -oP 'Interface\s+\K\w+'`;
14+ do iw phy phy$(iw dev $i info | grep -oP 'wiphy\s+\K\d+') info |
15+ grep -Pzo '(?s)Supported interface modes:\n\K(\s+\*\s.*?\n)+' |
16+ sed "s/.*\* \(.*\)/"$i"_\1: supported/" | tr -d '\000';
17+ done
18+_description: Create resource info for supported wifi interface modes
19+
20 id: snap
21 estimated_duration: 1.1
22 plugin: resource

Subscribers

People subscribed via source and target branches