comparison test/test_packager.py @ 293:faeeac2c4c71

Replace debrevision_prefix with pkg_revision_template. Their meaning is similar, but the template is not just a prefix, it's a template for Python's %-based string formatting. This allows more complex configuration to be done with command line settings so that it's easy to do a one-off build with a package revision like "kk5.2".
author Bernhard Herzog <bh@intevation.de>
date Tue, 06 Oct 2009 13:13:04 +0000
parents e3cda08d2619
children c32dc72ba979
comparison
equal deleted inserted replaced
292:0542181b8452 293:faeeac2c4c71
147 revisions = [ 147 revisions = [
148 ("Initial Revision", 148 ("Initial Revision",
149 [("README", "and miles to go before I sleep")]), 149 [("README", "and miles to go before I sleep")]),
150 ] 150 ]
151 151
152 def test_default_debrevision_prefix(self): 152 def test_default_pkg_revision_template(self):
153 self.runtest("treepkg1") 153 self.runtest("treepkg1")
154 154
155 def test_custom_debrevision_prefix(self): 155 def test_custom_pkg_revision_template(self):
156 self.runtest("kk1", debrevision_prefix="kk") 156 self.runtest("kk1.2", pkg_revision_template="kk%(pkg_revision)d.2")
157 157
158 158
159 class TestPackagerWithMultipleRevisions(PackagerTest): 159 class TestPackagerWithMultipleRevisions(PackagerTest):
160 160
161 revisions = [ 161 revisions = [
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)