~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

[merge] config file and other things from robert

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
        self.runbzr('commit -m f')
174
174
        os.unlink('symlink')
175
175
        self.runbzr('revert')
 
176
        self.failUnlessExists('symlink')
 
177
        os.unlink('symlink')
 
178
        os.symlink('a-different-path', 'symlink')
 
179
        self.runbzr('revert')
 
180
        self.assertEqual('/unlikely/to/exist',
 
181
                         os.readlink('symlink'))
176
182
        
177
183
        file('hello', 'wt').write('xyz')
178
184
        self.runbzr('commit -m xyz hello')
454
460
                           'added top.txt',],
455
461
                          results)
456
462
 
 
463
    def test_add_quiet_is(self):
 
464
        """add -q does not print the names of added files."""
 
465
        b = Branch.initialize('.')
 
466
        self.build_tree(['top.txt', 'dir/', 'dir/sub.txt'])
 
467
        out = self.run_bzr_captured(['add', '-q'], retcode = 0)[0]
 
468
        # the ordering is not defined at the moment
 
469
        results = sorted(out.rstrip('\n').split('\n'))
 
470
        self.assertEquals([''], results)
 
471
 
457
472
    def test_unknown_command(self):
458
473
        """Handling of unknown command."""
459
474
        out, err = self.run_bzr_captured(['fluffy-badger'],