~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/blackbox.py

  • Committer: Aaron Bentley
  • Date: 2008-10-10 19:23:14 UTC
  • Revision ID: aaron@aaronbentley.com-20081010192314-oynsoe7p5n0g1lxe
Add prompts before deleting in clean-tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
        self.touch('name~')
22
22
        assert os.path.lexists('name~')
23
23
        self.touch('name.pyc')
24
 
        self.run_bzr('clean-tree')
 
24
        self.run_bzr('clean-tree --force')
25
25
        assert os.path.lexists('name~')
26
26
        assert not os.path.lexists('name')
27
27
        self.touch('name')
28
 
        self.run_bzr('clean-tree --detritus')
 
28
        self.run_bzr('clean-tree --detritus --force')
29
29
        assert os.path.lexists('name')
30
30
        assert not os.path.lexists('name~')
31
31
        assert os.path.lexists('name.pyc')
32
 
        self.run_bzr('clean-tree --ignored')
 
32
        self.run_bzr('clean-tree --ignored --force')
33
33
        assert os.path.lexists('name')
34
34
        assert not os.path.lexists('name.pyc')
35
 
        self.run_bzr('clean-tree --unknown')
 
35
        self.run_bzr('clean-tree --unknown --force')
36
36
        assert not os.path.lexists('name')
37
37
        self.touch('name')
38
38
        self.touch('name~')
39
39
        self.touch('name.pyc')
40
 
        self.run_bzr('clean-tree --unknown --ignored')
 
40
        self.run_bzr('clean-tree --unknown --ignored --force')
41
41
        assert not os.path.lexists('name')
42
42
        assert not os.path.lexists('name~')
43
43
        assert not os.path.lexists('name.pyc')