Skip to content

Commit

Permalink
Add manifest for WiFi AP mode test (Bugfix) (#1680)
Browse files Browse the repository at this point in the history
* Add manifest for WiFi AP mode test from preventing related jobs been executing unintentionally
  • Loading branch information
rickwu666666 authored Jan 14, 2025
1 parent 209cc36 commit 96ba1e3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
unit: manifest entry
id: has_wifi_ap_host
_name: Does WiFi AP paring HOST machine available for testing WiFi AP mode?
value-type: bool
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ plugin: shell
environ: WIFI_AP_HOST_DEVICE_IP WIFI_AP_HOST_DEVICE_USER WIFI_AP_HOST_DEVICE_PWD WIFI_AP_HOST_DEVICE_INTERFACE
imports:
from com.canonical.certification import net_if_management
from com.canonical.plainbox import manifest
requires:
net_if_management.device == '{interface}' and net_if_management.master_mode_managed_by == 'NetworkManager'
net_if_management.device == '{interface}'
net_if_management.master_mode_managed_by == 'NetworkManager'
manifest.has_wifi_ap_host == 'True'
estimated_duration: 120.0
flags: preserve-locale also-after-suspend
command:
Expand All @@ -64,8 +67,11 @@ plugin: shell
environ: WIFI_AP_HOST_DEVICE_IP WIFI_AP_HOST_DEVICE_USER WIFI_AP_HOST_DEVICE_PWD WIFI_AP_HOST_DEVICE_INTERFACE
imports:
from com.canonical.certification import net_if_management
from com.canonical.plainbox import manifest
requires:
net_if_management.device == '{interface}' and net_if_management.master_mode_managed_by == 'NetworkManager'
net_if_management.device == '{interface}'
net_if_management.master_mode_managed_by == 'NetworkManager'
manifest.has_wifi_ap_host == 'True'
estimated_duration: 120.0
flags: preserve-locale also-after-suspend
command:
Expand Down

0 comments on commit 96ba1e3

Please sign in to comment.