]> git.ipfire.org Git - thirdparty/bind9.git/commit
Suppress warning/error comments in dig outputs for "rrsetorder" test
authorAram Sargsyan <aram@isc.org>
Thu, 23 Jun 2022 16:24:29 +0000 (16:24 +0000)
committerAram Sargsyan <aram@isc.org>
Fri, 22 Jul 2022 09:03:54 +0000 (09:03 +0000)
commitc0bb75e9ef4529494b58da5f3e805ab2df6ae9f3
treec5739cf34deb66ff4eab05dcc9ea82d684ef4735
parent8bdc4e40de9e55ce495839c59d0b0ff417a3f2b0
Suppress warning/error comments in dig outputs for "rrsetorder" test

In the CI dig sometimes produces warning/error comments when
communicating with the server, which produces problems when comparing
the outputs.

Here is an example of a dig output with a warning message which
is benign, because dig, after a retry, managed to query the server.

;; communications error to 10.53.0.3#7529: timed out
1.2.3.1
1.2.3.2
1.2.3.3
1.2.3.4

When comparing this to the expected output, which doesn't contain
the comment line (starting with double ';'), the outputs don't match.

Use grep inverse logic to strip the comments from the dig outputs.

(cherry picked from commit a5b2aa7c977b5c40b62698a8f46ffd839b764814)
bin/tests/system/rrsetorder/tests.sh