/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/blackbox/test_script.py

  • Committer: Jelmer Vernooij
  • Date: 2018-03-24 17:48:04 UTC
  • mfrom: (6921 work)
  • mto: This revision was merged to the branch mainline in revision 6923.
  • Revision ID: jelmer@jelmer.uk-20180324174804-xf22o05byoj12x1q
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        self.run_bzr(['test-script', 'I-do-not-exist'], retcode=3)
33
33
 
34
34
    def test_empty_file(self):
35
 
        self.build_tree_contents([('script', b'')])
 
35
        self.build_tree_contents([('script', '')])
36
36
        out, err = self.run_bzr(['test-script', 'script'])
37
37
        out_lines = out.splitlines()
38
38
        self.assertStartsWith(out_lines[-3], 'Ran 1 test in ')
40
40
        self.assertEqual('', err)
41
41
 
42
42
    def test_simple_file(self):
43
 
        self.build_tree_contents([('script', b'''
 
43
        self.build_tree_contents([('script', '''
44
44
$ echo hello world
45
45
hello world
46
46
''')])
51
51
        self.assertEqual('', err)
52
52
 
53
53
    def test_null_output(self):
54
 
        self.build_tree_contents([('script', b'''
 
54
        self.build_tree_contents([('script', '''
55
55
$ echo hello world
56
56
''')])
57
57
        out, err = self.run_bzr(['test-script', 'script', '--null-output'])
61
61
        self.assertEqual('', err)
62
62
 
63
63
    def test_failing_script(self):
64
 
        self.build_tree_contents([('script', b'''
 
64
        self.build_tree_contents([('script', '''
65
65
$ echo hello foo
66
66
hello bar
67
67
''')])