comparison test/test_readconfig.py @ 300:e82fb08781a2

Turn the SourcePackager class attribute changemsg_template into a per-track configuration option called changelog_msg_template. For now, the change is compatible with old SourcePackager subclasses that override changemsg_template.
author Bernhard Herzog <bh@intevation.de>
date Fri, 20 Nov 2009 21:35:12 +0000
parents c32dc72ba979
children 6cffb43a28ca
comparison
equal deleted inserted replaced
299:c32dc72ba979 300:e82fb08781a2
40 svn_url: svn://example.com/%(name)s/trunk 40 svn_url: svn://example.com/%(name)s/trunk
41 base_dir: %(tracks_dir)s/%(name)s 41 base_dir: %(tracks_dir)s/%(name)s
42 packager_class: readconfig_test.%(name)s 42 packager_class: readconfig_test.%(name)s
43 handle_dependencies: True 43 handle_dependencies: True
44 signing_key_id: abcd1234 44 signing_key_id: abcd1234
45 changelog_msg_template: Update to feature branch r%%(revision)d
45 46
46 [pkg_extraargs] 47 [pkg_extraargs]
47 svn_url: svn://example.com/%(name)s/trunk 48 svn_url: svn://example.com/%(name)s/trunk
48 base_dir: %(tracks_dir)s/%(name)s 49 base_dir: %(tracks_dir)s/%(name)s
49 packager_class: readconfig_test.extraargs 50 packager_class: readconfig_test.extraargs
81 self.assertEquals(sorted(packager_opts, 82 self.assertEquals(sorted(packager_opts,
82 key=operator.itemgetter("name")), 83 key=operator.itemgetter("name")),
83 [ 84 [
84 dict(name="extraargs", 85 dict(name="extraargs",
85 base_dir="/home/builder/mill/tracks/extraargs", 86 base_dir="/home/builder/mill/tracks/extraargs",
87 changelog_msg_template="Update to revision %(revision)d",
86 deb_email="treepkg@example.com", 88 deb_email="treepkg@example.com",
87 deb_fullname="TreePKG", 89 deb_fullname="TreePKG",
88 deb_build_options="parallel=2", 90 deb_build_options="parallel=2",
89 pkg_revision_template="treepkg%(pkg_revision)d", 91 pkg_revision_template="treepkg%(pkg_revision)d",
90 handle_dependencies=False, 92 handle_dependencies=False,
100 rules_svn_url="file:///tmp/my-debian-repository", 102 rules_svn_url="file:///tmp/my-debian-repository",
101 orig_tarball=("/home/builder/mill/" 103 orig_tarball=("/home/builder/mill/"
102 "tracks/extraargs/mytarball.tgz")), 104 "tracks/extraargs/mytarball.tgz")),
103 dict(name="simple", 105 dict(name="simple",
104 base_dir="/home/builder/mill/tracks/simple", 106 base_dir="/home/builder/mill/tracks/simple",
107 changelog_msg_template=("Update to feature branch"
108 " r%(revision)d"),
105 deb_email="treepkg@example.com", 109 deb_email="treepkg@example.com",
106 deb_fullname="TreePKG", 110 deb_fullname="TreePKG",
107 deb_build_options="", 111 deb_build_options="",
108 rules_svn_url="", 112 rules_svn_url="",
109 pkg_revision_template="treepkg%(pkg_revision)d", 113 pkg_revision_template="treepkg%(pkg_revision)d",
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)