Skip to content

Commit

Permalink
Add arg --host-interface to the job, since we add this args in the sc…
Browse files Browse the repository at this point in the history
…ript for make the test environment more consistent
  • Loading branch information
rickwu666666 committed Dec 24, 2024
1 parent fee3486 commit 7f2c307
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ _summary: Create open 802.11{band} Wi-Fi AP on {interface} and check connection
_description:
Create open 802.11{band} Wi-Fi AP on {interface} in channel{channel} group {group} and check connection
plugin: shell
environ: WIFI_AP_HOST_DEVICE_IP WIFI_AP_HOST_DEVICE_USER WIFI_AP_HOST_DEVICE_PWD
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
requires:
Expand All @@ -49,7 +49,7 @@ flags: preserve-locale also-after-suspend
command:
wifi_test.py --interface {interface} --host-ip "$WIFI_AP_HOST_DEVICE_IP" \
--host-user "$WIFI_AP_HOST_DEVICE_USER" --host-pwd "$WIFI_AP_HOST_DEVICE_PWD" \
wifi --mode ap --band {band} --channel {channel}
--host-interface "$WIFI_AP_HOST_DEVICE_INTERFACE" wifi --mode ap --band {band} --channel {channel}

unit: template
template-resource: ce_oem_wifi_ap_mode
Expand All @@ -61,7 +61,7 @@ _summary: Create wpa 802.11{band} Wi-Fi AP on {interface} and check connection
_description:
Create wpa 802.11{band} Wi-Fi AP on {interface} in channel{channel} group {group} and check connection
plugin: shell
environ: WIFI_AP_HOST_DEVICE_IP WIFI_AP_HOST_DEVICE_USER WIFI_AP_HOST_DEVICE_PWD
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
requires:
Expand All @@ -71,4 +71,5 @@ flags: preserve-locale also-after-suspend
command:
wifi_test.py --interface {interface} --host-ip "$WIFI_AP_HOST_DEVICE_IP" \
--host-user "$WIFI_AP_HOST_DEVICE_USER" --host-pwd "$WIFI_AP_HOST_DEVICE_PWD" \
wifi --mode ap --band {band} --channel {channel} --keymgmt {key_mgmt} --group {group}
--host-interface "$WIFI_AP_HOST_DEVICE_INTERFACE" wifi --mode ap --band {band} \
--channel {channel} --keymgmt {key_mgmt} --group {group}

0 comments on commit 7f2c307

Please sign in to comment.