~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testbzr

  • Committer: Martin Pool
  • Date: 2005-06-22 06:04:43 UTC
  • Revision ID: mbp@sourcefrog.net-20050622060443-12fe7e3443dde3bb
- merge plugin patch from john

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
    """Run a test involving creating a plugin to load,
154
154
    and making sure it is seen properly.
155
155
    """
 
156
    orig_help = backtick('bzr help commands') # No plugins yet
156
157
    mkdir('plugin_test')
157
158
    f = open(os.path.join('plugin_test', 'myplug.py'), 'wb')
158
159
    f.write("""import bzrlib, bzrlib.commands
225
226
    
226
227
    runcmd(['mkdir', TESTDIR])
227
228
    cd(TESTDIR)
 
229
    # This means that any command that is naively run in this directory
 
230
    # Won't affect the parent directory.
 
231
    runcmd('bzr init')
228
232
    test_root = os.getcwd()
229
233
 
230
234
    progress("introductory commands")