diff --git a/run_tests.py b/run_tests.py
index c54375307b4a3a055751d0708a1ec52efc0b3009..5855e8a0c5a7324f24a4fb066630ac134f091e68 100644 (file)
--- a/run_tests.py
+++ b/run_tests.py
cycles in your Zope sandbox, so don't do that.
"""
try:
- names = os.listdir(top)
+ # Prevent 'hidden' files (those starting with '.') from being considered.
+ names = [f for f in os.listdir(top) if not f.startswith('.')]
except os.error:
return
func(arg, top, names)
# Hmm...
logini = os.path.abspath("log.ini")
- from setup 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()