mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 09:39:10 -04:00
Merge branch 'bugfix/icmp_echo_test' into 'master'
CI: change icmp example test address to ci.espressif.cn See merge request espressif/esp-idf!11759
This commit is contained in:
commit
b7caf5c51d
@ -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]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user