]>
git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests.recursor-dnssec/printlogs.py
3 import xml
.etree
.ElementTree
7 e
= xml
.etree
.ElementTree
.parse('nosetests.xml')
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())