~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-08-29 01:25:00 UTC
  • Revision ID: mbp@sourcefrog.net-20050829012500-36f2d20363be4a53
* move bzr-specific code from testsweet into bzrlib.selftest

* logging from within test suites is now done using python logging, so
  the regular .bzr.log is not cluttered and the results can be easily
  seen if the test fails

* don't capture stdout/stderr while running tests, instead let it leak
  through so that we can see places where the library is doing its own
  output and should be fixed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1414
1414
 
1415
1415
        save_ui = bzrlib.ui.ui_factory
1416
1416
        bzrlib.trace.info('running tests...')
1417
 
        bzrlib.trace.disable_default_logging()
1418
1417
        try:
1419
1418
            bzrlib.ui.ui_factory = bzrlib.ui.SilentUIFactory()
1420
1419
            result = selftest(verbose=verbose)
1424
1423
                bzrlib.trace.info('tests failed')
1425
1424
            return int(not result)
1426
1425
        finally:
1427
 
            bzrlib.trace.enable_default_logging()
1428
1426
            bzrlib.ui.ui_factory = save_ui
1429
1427
 
1430
1428