/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_patch.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-06-15 23:52:31 UTC
  • mfrom: (7336.1.1 patch-strip-non-int)
  • Revision ID: breezy.the.bot@gmail.com-20190615235231-2gf4gcxgvk8ckxua
Print sensible error message when an invalid argument is specified for an option.

Merged from https://code.launchpad.net/~jelmer/brz/patch-strip-non-int/+merge/368870

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        self.assertFileEqual('hello', 'myfile')
35
35
        self.run_bzr('patch -p1 --silent mypatch')
36
36
        self.assertFileEqual('goodbye', 'myfile')
 
37
 
 
38
    def test_patch_invalid_strip(self):
 
39
        self.run_bzr_error(
 
40
            args="patch --strip=a",
 
41
            error_regexes=[
 
42
                'brz: ERROR: invalid value for option -p/--strip: a'])