Skip to content

Commit 96ba1e3

Browse files
authored
Add manifest for WiFi AP mode test (Bugfix) (#1680)
* Add manifest for WiFi AP mode test from preventing related jobs been executing unintentionally
1 parent 209cc36 commit 96ba1e3

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
unit: manifest entry
2+
id: has_wifi_ap_host
3+
_name: Does WiFi AP paring HOST machine available for testing WiFi AP mode?
4+
value-type: bool

contrib/checkbox-ce-oem/checkbox-provider-ce-oem/units/wifi/wifi-ap.pxu

+8-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ plugin: shell
4242
environ: WIFI_AP_HOST_DEVICE_IP WIFI_AP_HOST_DEVICE_USER WIFI_AP_HOST_DEVICE_PWD WIFI_AP_HOST_DEVICE_INTERFACE
4343
imports:
4444
from com.canonical.certification import net_if_management
45+
from com.canonical.plainbox import manifest
4546
requires:
46-
net_if_management.device == '{interface}' and net_if_management.master_mode_managed_by == 'NetworkManager'
47+
net_if_management.device == '{interface}'
48+
net_if_management.master_mode_managed_by == 'NetworkManager'
49+
manifest.has_wifi_ap_host == 'True'
4750
estimated_duration: 120.0
4851
flags: preserve-locale also-after-suspend
4952
command:
@@ -64,8 +67,11 @@ plugin: shell
6467
environ: WIFI_AP_HOST_DEVICE_IP WIFI_AP_HOST_DEVICE_USER WIFI_AP_HOST_DEVICE_PWD WIFI_AP_HOST_DEVICE_INTERFACE
6568
imports:
6669
from com.canonical.certification import net_if_management
70+
from com.canonical.plainbox import manifest
6771
requires:
68-
net_if_management.device == '{interface}' and net_if_management.master_mode_managed_by == 'NetworkManager'
72+
net_if_management.device == '{interface}'
73+
net_if_management.master_mode_managed_by == 'NetworkManager'
74+
manifest.has_wifi_ap_host == 'True'
6975
estimated_duration: 120.0
7076
flags: preserve-locale also-after-suspend
7177
command:

0 commit comments

Comments
 (0)