Merge branch 'bugfix/icmp_echo_test_v4.2' into 'release/v4.2'

CI: change icmp example test address to ci.espressif.cn (v4.2)

See merge request espressif/esp-idf!11903
This commit is contained in:
Anton Maklakov 2021-01-08 11:16:15 +08:00
commit 0c3c09e7ef

View File

@ -1,6 +1,7 @@
from __future__ import unicode_literals
import re
import ttfw_idf
import os
@ttfw_idf.idf_example_test(env_tag='Example_WIFI')
@ -11,7 +12,10 @@ def test_examples_icmp_echo(env, extra_data):
dut.expect('example_connect: Connected to')
dut.expect('esp>')
dut.write('ping www.espressif.com')
ping_dest = os.getenv('EXAMPLE_ICMP_SERVER', 'www.espressif.com')
dut.write('ping {}'.format(ping_dest))
ip_re = r'\.'.join((r'\d{1,3}',) * 4)
ip = dut.expect(re.compile(r'64 bytes from ({}) icmp_seq=1 ttl=\d+ time=\d+ ms'.format(ip_re)))[0]