From 62e01023c927e7268ab7af37313196c3e2211dd1 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 22 May 2018 07:35:31 +0200 Subject: 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 --- tests/component/deb/test_push.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') 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) -- cgit v1.2.3