~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Martin Pool
  • Date: 2007-05-19 08:39:34 UTC
  • mto: This revision was merged to the branch mainline in revision 2530.
  • Revision ID: mbp@sourcefrog.net-20070519083934-uowlkzt7k007k0rg
Put test root directory (containing per-test directories) in TMPDIR
rather than current directory, so it can be automatically scavenged,
kept in ramdisk, etc.  Remove test root directory through atexit rather
than from test runner.  Remove some code for managing them.

More thoroughly remove --keep-output.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2336
2336
class cmd_selftest(Command):
2337
2337
    """Run internal test suite.
2338
2338
    
2339
 
    This creates temporary test directories in the working directory, but no
2340
 
    existing data is affected.  These directories are deleted if the tests
2341
 
    pass, or left behind to help in debugging if they fail and --keep-output
2342
 
    is specified.
2343
 
    
2344
2339
    If arguments are given, they are regular expressions that say which tests
2345
2340
    should run.  Tests matching any expression are run, and other tests are
2346
2341
    not run.
2454
2449
            from bzrlib.tests import clean_selftest_output
2455
2450
            clean_selftest_output()
2456
2451
            return 0
 
2452
        if keep_output:
 
2453
            trace.warning("notice: selftest --keep-output "
 
2454
                          "is no longer supported; "
 
2455
                          "test output is always removed")
2457
2456
 
2458
2457
        if numbered_dirs is None and sys.platform == 'win32':
2459
2458
            numbered_dirs = True
2482
2481
            result = selftest(verbose=verbose, 
2483
2482
                              pattern=pattern,
2484
2483
                              stop_on_failure=one, 
2485
 
                              keep_output=keep_output,
2486
2484
                              transport=transport,
2487
2485
                              test_suite_factory=test_suite_factory,
2488
2486
                              lsprof_timed=lsprof_timed,