summaryrefslogtreecommitdiffstats
path: root/tests/pytests
diff options
context:
space:
mode:
authorOto Šťáva <oto.stava@nic.cz>2024-05-31 15:04:25 +0200
committerOto Šťáva <oto.stava@nic.cz>2024-06-04 16:00:34 +0200
commit68688fac013a4c16a476acc15c366a8ce07ed46e (patch)
tree9f539db33aea646a7c0c5d125578f3d1a38b1797 /tests/pytests
parentdaemon/session2: fix asynchronous layer iterations (diff)
downloadknot-resolver-68688fac013a4c16a476acc15c366a8ce07ed46e.tar.xz
knot-resolver-68688fac013a4c16a476acc15c366a8ce07ed46e.zip
.gitlab-ci: use Arch for linting
This allows us to use the newest versions of linter tools.
Diffstat (limited to 'tests/pytests')
-rw-r--r--tests/pytests/kresd.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/pytests/kresd.py b/tests/pytests/kresd.py
index ca15e0d7..21d96455 100644
--- a/tests/pytests/kresd.py
+++ b/tests/pytests/kresd.py
@@ -312,5 +312,7 @@ KRESD_LOG_IO_CLOSE = re.compile(r'^\[io \].*closed by peer.*')
@contextmanager
def make_kresd(workdir, certname=None, ip='127.0.0.1', ip6='::1', **kwargs):
with Kresd(workdir, ip=ip, ip6=ip6, certname=certname, **kwargs) as kresd:
- yield kresd
- print(kresd.partial_log())
+ try:
+ yield kresd
+ finally:
+ print(kresd.partial_log())