diff --git a/bin/tests/system/isctest/kasp.py b/bin/tests/system/isctest/kasp.py index a2bc24d926..2160ce1e0d 100644 --- a/bin/tests/system/isctest/kasp.py +++ b/bin/tests/system/isctest/kasp.py @@ -26,12 +26,7 @@ import isctest.log DEFAULT_TTL = 300 -def _save_response(response, fname): - with open(fname, "w", encoding="utf-8") as file: - file.write(response.to_text()) - - -def _query(server, qname, qtype, outfile=None): +def _query(server, qname, qtype): query = dns.message.make_query(qname, qtype, use_edns=True, want_dnssec=True) try: response = dns.query.tcp(query, server.ip, port=server.ports.dns, timeout=3) @@ -39,9 +34,6 @@ def _query(server, qname, qtype, outfile=None): isctest.log.debug(f"query timeout for query {qname} {qtype} to {server.ip}") return None - if outfile is not None: - _save_response(response, outfile) - return response