~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testbzr

  • Committer: Martin Pool
  • Date: 2005-05-09 01:18:48 UTC
  • Revision ID: mbp@sourcefrog.net-20050509011848-2d0ae1e478a4cf3d
- testbzr finds the right version of bzr to test

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
    else:
53
53
        logfile.write('$ %r\n' % cmd)
54
54
 
 
55
    if cmd[0] == 'bzr':
 
56
        cmd[0] = BZRPATH
 
57
 
55
58
    return cmd
56
59
 
57
60
 
120
123
 
121
124
 
122
125
try:
 
126
    mypath = os.path.abspath(sys.argv[0])
 
127
    print 'running tests from', mypath
 
128
 
 
129
    global BZRPATH
 
130
 
 
131
    if len(sys.argv) > 1:
 
132
        BZRPATH = sys.argv[1]
 
133
    else:
 
134
        BZRPATH = os.path.join(os.path.split(mypath)[0], 'bzr')
 
135
 
 
136
    print 'against bzr', BZRPATH
 
137
    print
 
138
    print backtick([BZRPATH, 'version'])
 
139
    
123
140
    runcmd(['mkdir', TESTDIR])
124
141
    cd(TESTDIR)
125
142