comparison run_tests.py @ 4078:25a6f93a17e1

Fix 'check_manifest()' import; Enable logging.
author Stefan Seefeld <stefan@seefeld.name>
date Tue, 24 Feb 2009 13:33:14 +0000
parents c8b0a23ba38d
children 2751074199b5
comparison
equal deleted inserted replaced
4077:7d19ed05baa6 4078:25a6f93a17e1
623 # buried in the build directory. XXX This isn't perfect because if 623 # buried in the build directory. XXX This isn't perfect because if
624 # log.ini specifies a log file, it'll be relative to the build directory. 624 # log.ini specifies a log file, it'll be relative to the build directory.
625 # Hmm... 625 # Hmm...
626 logini = os.path.abspath("log.ini") 626 logini = os.path.abspath("log.ini")
627 627
628 from setup import check_manifest 628 from roundup.dist.command.build import check_manifest
629 check_manifest() 629 check_manifest()
630 630
631 # Initialize the path and cwd 631 # Initialize the path and cwd
632 global pathinit 632 global pathinit
633 pathinit = PathInit(build, build_inplace, libdir) 633 pathinit = PathInit(build, build_inplace, libdir)
634 634
635 # No logging module in py 2.1 635 # Initialize the logging module.
636 # # Initialize the logging module. 636
637 637 import logging.config
638 # import logging.config 638 logging.basicConfig()
639 # logging.basicConfig() 639
640 640 level = os.getenv("LOGGING")
641 # level = os.getenv("LOGGING") 641 if level:
642 # if level: 642 level = int(level)
643 # level = int(level) 643 else:
644 # else: 644 level = logging.CRITICAL
645 # level = logging.CRITICAL 645 logging.root.setLevel(level)
646 # logging.root.setLevel(level) 646
647 647 if os.path.exists(logini):
648 # if os.path.exists(logini): 648 logging.config.fileConfig(logini)
649 # logging.config.fileConfig(logini)
650 649
651 files = find_tests(module_filter) 650 files = find_tests(module_filter)
652 files.sort() 651 files.sort()
653 652
654 if GUI: 653 if GUI:

Roundup Issue Tracker: http://roundup-tracker.org/