Merge branch 'ci/test_example_connect_ap_timeout_4.4' into 'release/v4.4'

test: fix ethernet iperf and https_server_simple test (4.4)

See merge request espressif/esp-idf!22388
This commit is contained in:
Jiang Jiang Jian
2023-02-24 16:46:43 +08:00
2 changed files with 4 additions and 3 deletions

View File

@@ -164,11 +164,11 @@ def test_examples_protocol_https_server_simple(env, extra_data): # type: (tiny_
# start test
dut1.start_app()
# Parse IP address and port of the server
dut1.expect(re.compile(r'Starting server'))
got_port = dut1.expect(re.compile(r'Server listening on port (\d+)'), timeout=30)[0]
dut1.expect(re.compile(r'Starting server'), timeout=60)
got_port = dut1.expect(re.compile(r'Server listening on port (\d+)[^\d]'), timeout=30)[0]
Utility.console_log('Waiting to connect with AP')
got_ip = dut1.expect(re.compile(r'IPv4 address: (\d+\.\d+\.\d+\.\d+)'), timeout=30)[0]
got_ip = dut1.expect(re.compile(r'IPv4 address: (\d+\.\d+\.\d+\.\d+)[^\d]'), timeout=30)[0]
# Expected logs
Utility.console_log('Got IP : ' + got_ip)

View File

@@ -301,6 +301,7 @@ class IperfTestUtility(object):
process = subprocess.Popen(['iperf', '-s', '-B', self.pc_nic_ip,
'-t', str(TEST_TIME), '-i', '1', '-f', 'm'],
stdout=f, stderr=f)
time.sleep(1)
if bw_limit > 0:
self.dut.write('iperf -c {} -i 1 -t {} -b {}'.format(self.pc_nic_ip, TEST_TIME, bw_limit))
else: