From fd2e06d413b009df2f1a1f30d3624e72ae201453 Mon Sep 17 00:00:00 2001 From: Handa Wang Date: Sat, 8 Feb 2025 03:04:43 +0800 Subject: [PATCH] [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. --- tests/scripts/thread-cert/node.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/scripts/thread-cert/node.py b/tests/scripts/thread-cert/node.py index f0ff32f8f..ea0e53f69 100755 --- a/tests/scripts/thread-cert/node.py +++ b/tests/scripts/thread-cert/node.py @@ -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: