From 26d59f0f4c1dcb7d045484d7bfd8e69159e84148 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Wed, 27 May 2020 11:16:18 +0800 Subject: [PATCH] ICMP echo: example test were failing due to regex not matching TTL --- examples/protocols/icmp_echo/example_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/protocols/icmp_echo/example_test.py b/examples/protocols/icmp_echo/example_test.py index 5edcfd4be..dcc19827b 100644 --- a/examples/protocols/icmp_echo/example_test.py +++ b/examples/protocols/icmp_echo/example_test.py @@ -16,7 +16,7 @@ def test_examples_icmp_echo(env, extra_data): ip = dut.expect(re.compile(r'64 bytes from ({}) icmp_seq=1 ttl=\d+ time=\d+ ms'.format(ip_re)))[0] # expect at least one more (there could be lost packets) - dut.expect(re.compile(r'64 bytes from {} icmp_seq=[2-5] ttl=49 time='.format(ip))) + dut.expect(re.compile(r'64 bytes from {} icmp_seq=[2-5] ttl=\d+ time='.format(ip))) dut.expect(re.compile(r'5 packets transmitted, [2-5] received, \d{1,3}% packet loss')) dut.write('')