From ebf52fc6181b6fa6f329bcaeda8b7b0382034f8f Mon Sep 17 00:00:00 2001 From: stefan Date: Tue, 24 Feb 2009 13:33:14 +0000 Subject: [PATCH] Fix 'check_manifest()' import; Enable logging. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4170 57a73879-2fb5-44c3-a270-3262357dd7e2 --- run_tests.py | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/run_tests.py b/run_tests.py index d84f590..ab3b126 100644 --- a/run_tests.py +++ b/run_tests.py @@ -625,28 +625,27 @@ def main(module_filter, test_filter, libdir): # Hmm... logini = os.path.abspath("log.ini") - from setup import check_manifest + from roundup.dist.command.build import check_manifest check_manifest() # Initialize the path and cwd global pathinit pathinit = PathInit(build, build_inplace, libdir) -# No logging module in py 2.1 -# # Initialize the logging module. + # Initialize the logging module. -# import logging.config -# logging.basicConfig() + import logging.config + logging.basicConfig() -# level = os.getenv("LOGGING") -# if level: -# level = int(level) -# else: -# level = logging.CRITICAL -# logging.root.setLevel(level) + level = os.getenv("LOGGING") + if level: + level = int(level) + else: + level = logging.CRITICAL + logging.root.setLevel(level) -# if os.path.exists(logini): -# logging.config.fileConfig(logini) + if os.path.exists(logini): + logging.config.fileConfig(logini) files = find_tests(module_filter) files.sort() -- 2.30.2