comparison test/test_readconfig.py @ 305:3781e9958eba

Add per-track configuration option version_template used by the SourcePackager to construct the version number. Also add some tests.
author Bernhard Herzog <bh@intevation.de>
date Tue, 01 Dec 2009 11:26:47 +0000
parents 6cffb43a28ca
children 163f0d8b64eb
comparison
equal deleted inserted replaced
304:6cffb43a28ca 305:3781e9958eba
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 changelog_msg_template: Update to feature branch r%%(revision)d
46 version_template: 1.0.svn%%(revision)s
46 47
47 [pkg_extraargs] 48 [pkg_extraargs]
48 svn_url: svn://example.com/%(name)s/trunk 49 svn_url: svn://example.com/%(name)s/trunk
49 svn_subset: -N . 50 svn_subset: -N .
50 subdir 51 subdir
101 root_cmd=['sudo'], 102 root_cmd=['sudo'],
102 signing_key_id="", 103 signing_key_id="",
103 svn_subset=[(".", False), ("subdir", True)], 104 svn_subset=[(".", False), ("subdir", True)],
104 svn_url="svn://example.com/extraargs/trunk", 105 svn_url="svn://example.com/extraargs/trunk",
105 rules_svn_url="file:///tmp/my-debian-repository", 106 rules_svn_url="file:///tmp/my-debian-repository",
107 version_template="%(revision)s",
106 orig_tarball=("/home/builder/mill/" 108 orig_tarball=("/home/builder/mill/"
107 "tracks/extraargs/mytarball.tgz")), 109 "tracks/extraargs/mytarball.tgz")),
108 dict(name="simple", 110 dict(name="simple",
109 base_dir="/home/builder/mill/tracks/simple", 111 base_dir="/home/builder/mill/tracks/simple",
110 changelog_msg_template=("Update to feature branch" 112 changelog_msg_template=("Update to feature branch"
119 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc", 121 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc",
120 pkg_basename="simple1", 122 pkg_basename="simple1",
121 root_cmd=['sudo'], 123 root_cmd=['sudo'],
122 signing_key_id="abcd1234", 124 signing_key_id="abcd1234",
123 svn_subset=[], 125 svn_subset=[],
124 svn_url="svn://example.com/simple/trunk")]) 126 svn_url="svn://example.com/simple/trunk",
127 version_template="1.0.svn%(revision)s")])
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)