diff options
author | Oto Šťáva <oto.stava@nic.cz> | 2024-05-31 15:04:25 +0200 |
---|---|---|
committer | Oto Šťáva <oto.stava@nic.cz> | 2024-06-04 16:00:34 +0200 |
commit | 68688fac013a4c16a476acc15c366a8ce07ed46e (patch) | |
tree | 9f539db33aea646a7c0c5d125578f3d1a38b1797 /tests/pytests | |
parent | daemon/session2: fix asynchronous layer iterations (diff) | |
download | knot-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.py | 6 |
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()) |