/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzr-receive-pack

  • Committer: Vincent Ladeuil
  • Date: 2008-01-29 08:21:19 UTC
  • mto: (3206.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 3207.
  • Revision ID: v.ladeuil+lp@free.fr-20080129082119-gerd998iwffytp6i
Get rid of ~1000 useless log files out of 10.000 tests in /tmp.

* bzrlib/tests/test_selftest.py:
(TestRunner.test_skipped_log_deleted,
TestRunner.test_not_aplicable_log_deleted,
TestRunner.test_known_failure_log_deleted): Add tests checking
that the log is deleted for skipped, not applicable and known
failures tests.

* bzrlib/tests/__init__.py:
(ExtendedTestResult.addError, ExtendedTestResult.addFailure,
ExtendedTestResult.addSuccess): Keep log only on true failures and
errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
import bzrlib
3
 
from bzrlib.plugins.git.server import BzrBackend
4
 
from dulwich.server import ReceivePackHandler
5
 
import sys, os
6
 
 
7
 
if len(sys.argv) != 2 or not os.path.isdir(sys.argv[1]):
8
 
    print "usage: git-receive-pack <git-dir>"
9
 
    sys.exit(1)
10
 
 
11
 
backend = BzrBackend(sys.argv[1])
12
 
 
13
 
def write_fn(data):
14
 
    sys.stdout.write(data)
15
 
    sys.stdout.flush()
16
 
 
17
 
server = ReceivePackHandler(backend, sys.stdin.read, write_fn)
18
 
server.handle()