Skip to content

Commit fd2e06d

Browse files
authored
[tests] deal with the No Such Record lines in the output of dns-sd (openthread#11223)
When resolving a hostname, `dns-sd` may output a line saying `No Such Record` with an all-zero address which should be discarded.
1 parent 3385437 commit fd2e06d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/scripts/thread-cert/node.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4040,6 +4040,8 @@ def discover_mdns_service(self, instance, name, host_name, timeout=2):
40404040
for line in self.bash(f'cat {host_name_file}', encoding='raw_unicode_escape'):
40414041
elements = line.split()
40424042
fullname = f'{host_name}.local.'
4043+
if 'No Such Record' in line:
4044+
continue
40434045
if fullname not in elements:
40444046
continue
40454047
if 'Add' not in elements:

0 commit comments

Comments
 (0)