]> git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests.recursor-dnssec/printlogs.py
rec: Disable only our own TCP listening socket when reuseport is enabled
[thirdparty/pdns.git] / regression-tests.recursor-dnssec / printlogs.py
1 #!/usr/bin/env python2
2
3 import xml.etree.ElementTree
4 import os.path
5 import glob
6
7 e = xml.etree.ElementTree.parse('nosetests.xml')
8 root = e.getroot()
9
10 for child in root:
11 if len(child):
12 for elem in child:
13 if elem.tag in ["failure", "error"]:
14 confdirname = child.get("classname").split('_')[1].split('.')[0]
15 confdir = os.path.join("configs", confdirname)
16 recursorlog = os.path.join(confdir, "recursor.log")
17 if os.path.exists(recursorlog):
18 print "==============> %s <==============" % recursorlog
19 with open(recursorlog) as f:
20 print ''.join(f.readlines())
21 authdirs = glob.glob(os.path.join(confdir, "auth-*"))
22 for authdir in authdirs:
23 authlog = os.path.join(authdir, "pdns.log")
24 if os.path.exists(recursorlog):
25 print "==============> %s <==============" % authlog
26 with open(authlog) as f:
27 print ''.join(f.readlines())