From 18bac0cf67a48d475ec2070ee7a1bbb8dd67f8c0 Mon Sep 17 00:00:00 2001 From: Chen Yudong Date: Fri, 30 Jun 2023 14:28:36 +0800 Subject: [PATCH] ci(example): disable softap in wifi station example --- examples/wifi/.build-test-rules.yml | 2 ++ examples/wifi/getting_started/pytest_wifi_getting_started.py | 1 + examples/wifi/getting_started/station/sdkconfig.defaults | 1 + 3 files changed, 4 insertions(+) create mode 100644 examples/wifi/getting_started/station/sdkconfig.defaults diff --git a/examples/wifi/.build-test-rules.yml b/examples/wifi/.build-test-rules.yml index 1678d58eed..ce0971bbb9 100644 --- a/examples/wifi/.build-test-rules.yml +++ b/examples/wifi/.build-test-rules.yml @@ -17,6 +17,8 @@ examples/wifi/getting_started: - if: IDF_TARGET not in ["esp32", "esp32c3", "esp32c2", "esp32s3"] temporary: true reason: lack of runners + depends_filepatterns: + - examples/wifi/getting_started/**/* examples/wifi/iperf: disable: diff --git a/examples/wifi/getting_started/pytest_wifi_getting_started.py b/examples/wifi/getting_started/pytest_wifi_getting_started.py index 8761adf282..d6edc8a24a 100644 --- a/examples/wifi/getting_started/pytest_wifi_getting_started.py +++ b/examples/wifi/getting_started/pytest_wifi_getting_started.py @@ -59,6 +59,7 @@ def test_wifi_getting_started_esp32c2_xtal_26mhz(dut: Tuple[IdfDut, IdfDut]) -> softap = dut[0] station = dut[1] + assert station.app.sdkconfig['ESP_WIFI_SOFTAP_SUPPORT'] is False ssid = softap.app.sdkconfig.get('ESP_WIFI_SSID') password = softap.app.sdkconfig.get('ESP_WIFI_PASSWORD') assert station.app.sdkconfig.get('ESP_WIFI_SSID') == ssid diff --git a/examples/wifi/getting_started/station/sdkconfig.defaults b/examples/wifi/getting_started/station/sdkconfig.defaults new file mode 100644 index 0000000000..42b9e74caa --- /dev/null +++ b/examples/wifi/getting_started/station/sdkconfig.defaults @@ -0,0 +1 @@ +CONFIG_ESP_WIFI_SOFTAP_SUPPORT=n