diff 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
line wrap: on
line diff
--- a/test/test_packager.py	Tue Oct 06 12:55:11 2009 +0000
+++ b/test/test_packager.py	Tue Oct 06 13:13:04 2009 +0000
@@ -149,11 +149,11 @@
          [("README", "and miles to go before I sleep")]),
         ]
 
-    def test_default_debrevision_prefix(self):
+    def test_default_pkg_revision_template(self):
         self.runtest("treepkg1")
 
-    def test_custom_debrevision_prefix(self):
-        self.runtest("kk1", debrevision_prefix="kk")
+    def test_custom_pkg_revision_template(self):
+        self.runtest("kk1.2", pkg_revision_template="kk%(pkg_revision)d.2")
 
 
 class TestPackagerWithMultipleRevisions(PackagerTest):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)