diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-05-22 07:35:31 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-05-22 07:38:11 +0200 |
commit | 62e01023c927e7268ab7af37313196c3e2211dd1 (patch) | |
tree | ffe7c57f5ad850d84e7beb934d70788d2ba69511 /tests | |
parent | 29b9f2ce26eeda9970bfa230520bf0f8cb412c35 (diff) |
push: Allow to skip upstream and debian branch and tag push
Push of tag and or branch can be skipped by setting
--{upstream,debian}-{branch,tag}='' .
Closes: #899234
Diffstat (limited to 'tests')
-rw-r--r-- | tests/component/deb/test_push.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/component/deb/test_push.py b/tests/component/deb/test_push.py index 13db27f1..0dd571cb 100644 --- a/tests/component/deb/test_push.py +++ b/tests/component/deb/test_push.py @@ -73,6 +73,15 @@ class TestPush(ComponentTestBase): ['upstream'], tags=['debian/2.8-1', 'upstream/2.8']) + @RepoFixtures.quilt30() + def test_push_skip_upstream(self, repo): + repo.add_remote_repo('origin', self.target.path) + self.assertEquals(push(['argv0', '--upstream-branch=']), 0) + self._check_repo_state(self.target, 'master', + ['master'], + tags=['debian/2.8-1', 'upstream/2.8']) + self.assertEquals(repo.head, self.target.head) + @RepoFixtures.native() def test_push_tag_ne_branch(self, repo): repo.add_remote_repo('origin', self.target.path) |