From: Michael Tremer Date: Fri, 26 Jan 2024 18:27:42 +0000 (+0000) Subject: tests: Dump log onto the console for Python tests X-Git-Tag: 0.9.30~1243 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f234f597efca472d77271e07279596eeb28a2e17;p=pakfire.git tests: Dump log onto the console for Python tests This is not very elegant, but I don't have a better way to do this now. Signed-off-by: Michael Tremer --- diff --git a/tests/python/tests.py b/tests/python/tests.py index 12009038f..49a5d2a45 100644 --- a/tests/python/tests.py +++ b/tests/python/tests.py @@ -18,8 +18,10 @@ # # ############################################################################### +import logging import pakfire import os +import sys import tempfile import unittest @@ -28,6 +30,9 @@ TEST_DATA_DIR = os.environ.get("TEST_DATA_DIR") if not TEST_DATA_DIR: raise RuntimeError("TEST_DATA_DIR is not set") +# Setup logging +logging.basicConfig(stream=sys.stderr, level=logging.DEBUG) + class TestCase(unittest.TestCase): """ This is a TestCase class based on unittest.TestCase which has