diff options
author | Robert Collins <rbtcollins@hp.com> | 2015-04-30 09:47:22 +1200 |
---|---|---|
committer | Robert Collins <rbtcollins@hp.com> | 2015-04-30 11:26:00 +1200 |
commit | a67e2c346c5193cf36e381694d8fddb0d826df6b (patch) | |
tree | d3a5cb0ac1c8993153ddf994361586d8dba15e0e /pbr/tests | |
parent | 0971d6f63adf19eea45791d34619d27a0ba73553 (diff) | |
download | pbr-a67e2c346c5193cf36e381694d8fddb0d826df6b.tar.gz |
Issue #1450210: Preversioning rc tag handling0.11.0
We were generating versions lower than the last tag when preversioning
was in use and pre-release versions had been tagged.
Also attempt to run the script without devstack.
Change-Id: If984939003ae7c513ee76b52c6808db0c1766050
Closes-Bug: #1450210
Diffstat (limited to 'pbr/tests')
-rw-r--r-- | pbr/tests/test_packaging.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pbr/tests/test_packaging.py b/pbr/tests/test_packaging.py index 9e08b82..3b19516 100644 --- a/pbr/tests/test_packaging.py +++ b/pbr/tests/test_packaging.py @@ -317,6 +317,13 @@ class TestVersions(base.BaseTestCase): version = packaging._get_version_from_git('1.2.5') self.assertThat(version, matchers.StartsWith('1.2.5.dev1')) + def test_untagged_version_after_rc_has_dev_version_preversion(self): + self.repo.commit() + self.repo.tag('1.2.3.0a1') + self.repo.commit() + version = packaging._get_version_from_git('1.2.3') + self.assertThat(version, matchers.StartsWith('1.2.3.0a2.dev1')) + def test_preversion_too_low_simple(self): # That is, the target version is either already released or not high # enough for the semver requirements given api breaks etc. |