From 755f16222fe057b627d1cc89507ba271a7b74744 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Fri, 14 Jan 2022 14:34:24 +0100 Subject: [PATCH] ci/websockets: Run ws-client example test on ethernet runners * Original commit: espressif/esp-idf@2649413ae863513412f50d6dc2b8886ce7a45f02 --- examples/protocols/websocket/example_test.py | 4 ++-- examples/protocols/websocket/sdkconfig.ci | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/examples/protocols/websocket/example_test.py b/examples/protocols/websocket/example_test.py index 2c99f384b..8dc846dd0 100644 --- a/examples/protocols/websocket/example_test.py +++ b/examples/protocols/websocket/example_test.py @@ -97,11 +97,11 @@ def test_recv_long_msg(dut, websocket, msg_len, repeats): \nreceived: {}\nwith length {}'.format(send_msg, len(send_msg), recv_msg, len(recv_msg))) -@ttfw_idf.idf_example_test(env_tag='Example_WIFI_Protocols') +@ttfw_idf.idf_example_test(env_tag='Example_EthKitV1') def test_examples_protocol_websocket(env, extra_data): """ steps: - 1. join AP + 1. obtain IP address 2. connect to uri specified in the config 3. send and receive data """ diff --git a/examples/protocols/websocket/sdkconfig.ci b/examples/protocols/websocket/sdkconfig.ci index 3ce203d46..9c2dea374 100644 --- a/examples/protocols/websocket/sdkconfig.ci +++ b/examples/protocols/websocket/sdkconfig.ci @@ -1,2 +1,11 @@ CONFIG_WEBSOCKET_URI_FROM_STDIN=y CONFIG_WEBSOCKET_URI_FROM_STRING=n +CONFIG_EXAMPLE_CONNECT_ETHERNET=y +CONFIG_EXAMPLE_CONNECT_WIFI=n +CONFIG_EXAMPLE_USE_INTERNAL_ETHERNET=y +CONFIG_EXAMPLE_ETH_PHY_IP101=y +CONFIG_EXAMPLE_ETH_MDC_GPIO=23 +CONFIG_EXAMPLE_ETH_MDIO_GPIO=18 +CONFIG_EXAMPLE_ETH_PHY_RST_GPIO=5 +CONFIG_EXAMPLE_ETH_PHY_ADDR=1 +CONFIG_EXAMPLE_CONNECT_IPV6=y