diff options
Diffstat (limited to 'tests/component/rpm/test_pq_rpm.py')
-rw-r--r-- | tests/component/rpm/test_pq_rpm.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/component/rpm/test_pq_rpm.py b/tests/component/rpm/test_pq_rpm.py index 57f74d9f..16044fdc 100644 --- a/tests/component/rpm/test_pq_rpm.py +++ b/tests/component/rpm/test_pq_rpm.py @@ -113,9 +113,11 @@ class TestPqRpm(RpmRepoTestBase): self._check_repo_state(repo, 'patch-queue/master-orphan', branches, files) - # Test export - eq_(mock_pq(['export', '--upstream-tag', 'upstream/%(version)s', - '--spec-file', 'packaging/gbp-test2.spec']), 0) + # Test export with --drop + branches.remove('patch-queue/master-orphan') + eq_(mock_pq(['export', '--drop', '--upstream-tag', + 'upstream/%(version)s', '--spec-file', + 'packaging/gbp-test2.spec']), 0) self._check_repo_state(repo, 'master-orphan', branches, clean=False) eq_(repo.status()[' M'], [b'packaging/gbp-test2.spec']) self._has_patches('packaging/gbp-test2.spec', patches) |