]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Move watchlog module into isctest.log package
authorTom Krizek <tkrizek@isc.org>
Thu, 15 Feb 2024 12:57:42 +0000 (13:57 +0100)
committerTom Krizek <tkrizek@isc.org>
Fri, 16 Feb 2024 13:56:00 +0000 (14:56 +0100)
Preparation for further logging improvements - keep the watchlog
contents in a separate module inside isctest.log. Export the names in
the log package so the imports don't change for the users of these
classes.

bin/tests/system/isctest/log/__init__.py [new file with mode: 0644]
bin/tests/system/isctest/log/watchlog.py [moved from bin/tests/system/isctest/log.py with 99% similarity]

diff --git a/bin/tests/system/isctest/log/__init__.py b/bin/tests/system/isctest/log/__init__.py
new file mode 100644 (file)
index 0000000..56b7963
--- /dev/null
@@ -0,0 +1,12 @@
+# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+#
+# SPDX-License-Identifier: MPL-2.0
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0.  If a copy of the MPL was not distributed with this
+# file, you can obtain one at https://mozilla.org/MPL/2.0/.
+#
+# See the COPYRIGHT file distributed with this work for additional
+# information regarding copyright ownership.
+
+from .watchlog import LogFile, WatchLogFromStart, WatchLogFromHere
similarity index 99%
rename from bin/tests/system/isctest/log.py
rename to bin/tests/system/isctest/log/watchlog.py
index 236cfdae3a189581ffa7d8fe0682433242e4eef7..1931f13aff31258ecefc911f453d0dd8c2d405a7 100644 (file)
@@ -9,12 +9,10 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
-from typing import Iterator, Optional, TextIO, Dict, Any, overload, List, Union
+from typing import Iterator, Optional, TextIO, Dict, Any
 
 import abc
 import os
-import shlex
-import subprocess
 import time