bind9/bin
Michał Kępień 3f5318f094 Fix a PyLint 2.13.7 error
PyLint 2.13.7 reports the following error:

    bin/tests/system/doth/conftest.py:34:28: E0601: Using variable 'stderr' before assignment (used-before-assignment)

The reason the current code has not caused problems before is that
invoking gnutls-cli with just the --logfile=/dev/null argument causes it
to always return with a non-zero exit code, either due to the option not
being supported or due to the hostname argument not being provided.  In
other words, the 'except' branch has always been taken.  PyLint is
obviously right on a syntactical level, though.

Instead of relying on a less than obvious code flow (where the 'except'
branch is always taken), rework the flagged code by employing
subprocess.run(..., check=False) instead of subprocess.check_output(),
making exception handling redundant.

While this issue was investigated, it was also noticed that
subprocess.check_output() was incorrectly used as a context manager:
Popen objects are context managers, but subprocess.check_output() and
subprocess.run() are not.  Fix by dropping the relevant 'with'
statement.
2022-04-22 11:25:27 +02:00
..
check Set hard thread affinity for each zone 2022-04-01 23:50:34 +02:00
confgen Replace ISC_NORETURN with C11's noreturn 2022-03-25 08:33:43 +01:00
delv Remove isc_appctx_t use in dns_client 2022-03-29 14:14:49 -07:00
dig ensure dig sets exitcode after local UDP connection failure 2022-04-15 10:32:31 -07:00
dnssec Teach dnssec-settime to read times that it writes 2022-03-25 16:05:43 +01:00
named Allow listening on less than nworkers threads 2022-04-19 11:08:13 +02:00
nsupdate Remove use of the inline keyword used as suggestion to compiler 2022-03-25 08:33:43 +01:00
plugins Make isc_ht optionally case insensitive 2022-03-28 15:02:18 -07:00
rndc Remove extrahandle size from netmgr 2022-03-25 10:38:35 +01:00
tests Fix a PyLint 2.13.7 error 2022-04-22 11:25:27 +02:00
tools Ensure that dns_request_createvia() has a retry limit 2022-04-06 17:12:48 +01:00
Makefile.am Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00