mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
[tests] deal with the No Such Record lines in the output of dns-sd (#11223)
When resolving a hostname, `dns-sd` may output a line saying `No Such Record` with an all-zero address which should be discarded.
This commit is contained in:
@@ -4040,6 +4040,8 @@ class LinuxHost():
|
||||
for line in self.bash(f'cat {host_name_file}', encoding='raw_unicode_escape'):
|
||||
elements = line.split()
|
||||
fullname = f'{host_name}.local.'
|
||||
if 'No Such Record' in line:
|
||||
continue
|
||||
if fullname not in elements:
|
||||
continue
|
||||
if 'Add' not in elements:
|
||||
|
||||
Reference in New Issue
Block a user