From caae336f6eb8a986dddb24ff7c120dc0c7d7f323 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Thu, 9 Dec 2021 07:17:36 +0100 Subject: [PATCH] esp_eth/CI: Fix app-test regex for parsing DUT's MAC --- components/esp_eth/test_apps/component_ut_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/esp_eth/test_apps/component_ut_test.py b/components/esp_eth/test_apps/component_ut_test.py index b511fe9a52..37a026ca81 100644 --- a/components/esp_eth/test_apps/component_ut_test.py +++ b/components/esp_eth/test_apps/component_ut_test.py @@ -78,7 +78,8 @@ def test_component_ut_esp_eth(env, appname): # type: (tiny_test_fw.Env, str) -> stdout = dut.expect("Enter next test, or 'enter' to see menu", full_stdout=True) ttfw_idf.ComponentUTResult.parse_result(stdout, test_format=TestFormat.UNITY_BASIC) dut.write('"recv_pkt"') - expect_result = dut.expect(re.compile(r'([\s\S]*)DUT MAC: ([0-9a-zA-Z:]*)'), timeout=10) + expect_result = dut.expect(re.compile(r'([\s\S]*)DUT MAC: ([0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2})'), + timeout=10) stdout = expect_result[0] send_eth_packet(bytes.fromhex('ffffffffffff')) # broadcast frame send_eth_packet(bytes.fromhex('010000000000')) # multicast frame