diff options
author | Emanuele Aina <emanuele.aina@collabora.com> | 2021-02-08 15:17:35 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2021-02-13 15:44:15 +0100 |
commit | fc568840348db3e2a828fc8cf9e27ef32241c042 (patch) | |
tree | 5e930d636bf47f225e662a98f01ea18cff5f6e40 /tests | |
parent | d50d59070d7545e869ec6a78e7719a5224545fc7 (diff) |
dch: Add support for the --local=suffix option
Closes: #857370
Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/11_test_dch_main.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/11_test_dch_main.py b/tests/11_test_dch_main.py index dbd82879..7dafb7f2 100644 --- a/tests/11_test_dch_main.py +++ b/tests/11_test_dch_main.py @@ -304,6 +304,13 @@ class TestScriptDch(DebianGitTestRepo): self.assertEqual("test-package (%s) %s; urgency=%s\n" % (new_version_0_9, os_codename, default_urgency), lines[0]) self.assertIn(""" * added debian/control\n""", lines) + def test_dch_main_increment_debian_version_with_local(self): + """Test dch.py like gbp dch script does: increment debian version - local suffix""" + options = ["--local", "suffix"] + lines = self.run_dch(options) + self.assertEqual("test-package (0.9-1suffix1) UNRELEASED; urgency=%s\n" % (default_urgency,), lines[0]) + self.assertIn(""" * added debian/control\n""", lines) + def test_dch_main_increment_debian_version_with_auto(self): """Test dch.py like gbp dch script does: increment debian version - guess last commit""" self.repo.delete_tag("upstream/1.0") |