]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
tests: enable verbose logging
authorMarek Vavruša <marek.vavrusa@nic.cz>
Tue, 15 Sep 2015 15:42:35 +0000 (17:42 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Tue, 15 Sep 2015 15:42:35 +0000 (17:42 +0200)
tests/kresd.j2
tests/pydnstest/scenario.py

index 499e15f6d4dc303385d479fa2923ca374fb36e44..72b89cea37fe284d18a42fb498d52f8462ce46e3 100644 (file)
@@ -5,6 +5,7 @@ hints.root({['k.root-servers.net'] = '{{ROOT_ADDR}}'})
 option('NO_MINIMIZE', {{NO_MINIMIZE}})
 option('ALLOW_LOCAL', true)
 validate.trust_anchor_add('{{TRUST_ANCHOR}}')
+verbose(true)
 
 -- Self-checks on globals
 assert(help() ~= nil)
index 159d5b83a4988f50f533aba11e9cc0af494d3cfc..50696fd1c7f74478d084047870e69a862f604b4e 100644 (file)
@@ -304,8 +304,8 @@ class Step:
         else:
             if ctx.last_answer is None:
                 raise Exception("no answer from preceding query")
-            expected.match(ctx.last_answer)
             dprint(ctx.last_answer.to_text())
+            expected.match(ctx.last_answer)
 
     def __query(self, ctx, peeraddr):
         """ Resolve a query. """