~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-15 08:22:22 UTC
  • mfrom: (2485.6.9 test-cleanup)
  • Revision ID: pqm@pqm.ubuntu.com-20070615082222-98j9j9nbl6p2dx0m
Speed up tests by deleting test directories immediately after they're used, and put them in  (mbp, spiv)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2359
2359
class cmd_selftest(Command):
2360
2360
    """Run internal test suite.
2361
2361
    
2362
 
    This creates temporary test directories in the working directory, but no
2363
 
    existing data is affected.  These directories are deleted if the tests
2364
 
    pass, or left behind to help in debugging if they fail and --keep-output
2365
 
    is specified.
2366
 
    
2367
2362
    If arguments are given, they are regular expressions that say which tests
2368
2363
    should run.  Tests matching any expression are run, and other tests are
2369
2364
    not run.
2477
2472
            from bzrlib.tests import clean_selftest_output
2478
2473
            clean_selftest_output()
2479
2474
            return 0
 
2475
        if keep_output:
 
2476
            trace.warning("notice: selftest --keep-output "
 
2477
                          "is no longer supported; "
 
2478
                          "test output is always removed")
2480
2479
 
2481
2480
        if numbered_dirs is None and sys.platform == 'win32':
2482
2481
            numbered_dirs = True
2505
2504
            result = selftest(verbose=verbose, 
2506
2505
                              pattern=pattern,
2507
2506
                              stop_on_failure=one, 
2508
 
                              keep_output=keep_output,
2509
2507
                              transport=transport,
2510
2508
                              test_suite_factory=test_suite_factory,
2511
2509
                              lsprof_timed=lsprof_timed,