~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testbzr

  • Committer: Martin Pool
  • Date: 2005-04-28 07:07:06 UTC
  • Revision ID: mbp@sourcefrog.net-20050428070705-5368365fbaee41be
- todos
- log commands run from testbzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    
45
45
    if isinstance(cmd, basestring):
46
46
        cmd = cmd.split()
 
47
    logfile.write('$ %r\n' % cmd)
47
48
    retcode = call(cmd, stdout=logfile, stderr=logfile)
48
49
    if retcode != 0:
49
50
        raise Exception("test failed: %r returned %r" % (cmd, retcode))