From 8e6c4d9ec57f120df42f634a91d05722914e93da Mon Sep 17 00:00:00 2001 From: Jonathan Cave Date: Wed, 20 Feb 2019 16:43:56 +0000 Subject: ethernet: network_device_info detect/info changes The network_device_info script was being used by the ethernet/detect and info/network_devices jobs. This clarifies the two roles and removes the unrequired udev/NM matching code. --- units/ethernet/jobs.pxu | 6 ++++-- units/ethernet/manifest.pxu | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 units/ethernet/manifest.pxu (limited to 'units/ethernet') diff --git a/units/ethernet/jobs.pxu b/units/ethernet/jobs.pxu index cf1c02b..15625a5 100644 --- a/units/ethernet/jobs.pxu +++ b/units/ethernet/jobs.pxu @@ -2,13 +2,15 @@ plugin: shell category_id: com.canonical.plainbox::ethernet id: ethernet/detect flags: also-after-suspend -command: network_device_info +command: network_device_info.py detect estimated_duration: 2.0 _summary: - Report info about available network devices + Detect if at least one ethernet device is detected _description: Test to detect and return information about available network controllers on the system under test. +imports: from com.canonical.plainbox import manifest +requires: manifest.has_ethernet_adapter == 'True' plugin: shell category_id: com.canonical.plainbox::ethernet diff --git a/units/ethernet/manifest.pxu b/units/ethernet/manifest.pxu new file mode 100644 index 0000000..6936344 --- /dev/null +++ b/units/ethernet/manifest.pxu @@ -0,0 +1,4 @@ +unit: manifest entry +id: has_ethernet_adapter +_name: An Ethernet Adapter +value-type: bool -- cgit v1.2.3