]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: relax grep for DNS query refusal
authorNick Rosbrook <enr0n@ubuntu.com>
Fri, 19 Jun 2026 19:01:02 +0000 (15:01 -0400)
committerNick Rosbrook <enr0n@ubuntu.com>
Fri, 26 Jun 2026 20:03:18 +0000 (16:03 -0400)
The punctuation is not strictly important for the error.

test/units/TEST-75-RESOLVED.sh

index 7a740a1c2e4d68bd20336d8a5dc4efff360599e2..d9757b385596ebd6c6b031004b5e47d0d5075624 100755 (executable)
@@ -1258,13 +1258,13 @@ testcase_14_refuse_record_types() {
     grep -qF "127.128.0.5" "$RUN_OUT"
 
     (! run resolvectl query localhost5 --type=SRV)
-    grep -qF "DNS query type refused." "$RUN_OUT"
+    grep -qF "DNS query type refused" "$RUN_OUT"
 
     (! run resolvectl query localhost5 --type=TXT)
-    grep -qF "DNS query type refused." "$RUN_OUT"
+    grep -qF "DNS query type refused" "$RUN_OUT"
 
     (! run resolvectl query localhost5 --type=AAAA)
-    grep -qF "DNS query type refused." "$RUN_OUT"
+    grep -qF "DNS query type refused" "$RUN_OUT"
 
     run resolvectl query localhost5 --type=A
     grep -qF "127.128.0.5" "$RUN_OUT"
@@ -1304,7 +1304,7 @@ testcase_14_refuse_record_types() {
     grep -qF "does not have any RR of the requested type" "$RUN_OUT"
 
     (! run resolvectl query localhost5 --type=AAAA)
-    grep -qF "DNS query type refused." "$RUN_OUT"
+    grep -qF "DNS query type refused" "$RUN_OUT"
 
     run resolvectl service _mysvc._tcp signed.test
     grep -qF "myservice.signed.test:1234" "$RUN_OUT"