Mercurial > treepkg
comparison test/test_readconfig.py @ 403:f9cd55aea87d treepkg-status
updated test readconfig for os config variable
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Tue, 13 Jul 2010 12:23:28 +0000 |
parents | a690fc689f2f |
children | 296d26453e2a |
comparison
equal
deleted
inserted
replaced
402:01c059298906 | 403:f9cd55aea87d |
---|---|
43 packager_class: readconfig_test.%(name)s | 43 packager_class: readconfig_test.%(name)s |
44 handle_dependencies: True | 44 handle_dependencies: True |
45 signing_key_id: abcd1234 | 45 signing_key_id: abcd1234 |
46 changelog_msg_template: Update to feature branch r%%(revision)s | 46 changelog_msg_template: Update to feature branch r%%(revision)s |
47 version_template: 1.0.svn%%(revision)s | 47 version_template: 1.0.svn%%(revision)s |
48 os: foo os | |
48 | 49 |
49 [pkg_extraargs] | 50 [pkg_extraargs] |
50 svn_url: svn://example.com/%(name)s/trunk | 51 svn_url: svn://example.com/%(name)s/trunk |
51 svn_subset: -N . | 52 svn_subset: -N . |
52 subdir | 53 subdir |
54 base_dir: %(tracks_dir)s/%(name)s | 55 base_dir: %(tracks_dir)s/%(name)s |
55 packager_class: readconfig_test.extraargs | 56 packager_class: readconfig_test.extraargs |
56 orig_tarball: %(base_dir)s/mytarball.tgz | 57 orig_tarball: %(base_dir)s/mytarball.tgz |
57 rules_svn_url: file:///tmp/my-debian-repository | 58 rules_svn_url: file:///tmp/my-debian-repository |
58 deb_build_options: parallel=2 | 59 deb_build_options: parallel=2 |
60 os: bar os | |
59 """ | 61 """ |
60 | 62 |
61 files = [("treepkg.cfg", config_contents), | 63 files = [("treepkg.cfg", config_contents), |
62 ("readconfig_test", | 64 ("readconfig_test", |
63 [("__init__.py", ""), | 65 [("__init__.py", ""), |
113 version_template="%(revision)s", | 115 version_template="%(revision)s", |
114 orig_tarball=("/home/builder/mill/" | 116 orig_tarball=("/home/builder/mill/" |
115 "tracks/extraargs/mytarball.tgz"), | 117 "tracks/extraargs/mytarball.tgz"), |
116 git_url="", | 118 git_url="", |
117 git_branch="", | 119 git_branch="", |
118 builder_cls="PBuilder"), | 120 builder_cls="PBuilder", |
121 os="bar os"), | |
119 dict(name="simple", | 122 dict(name="simple", |
120 base_dir="/home/builder/mill/tracks/simple", | 123 base_dir="/home/builder/mill/tracks/simple", |
121 changelog_msg_template=("Update to feature branch" | 124 changelog_msg_template=("Update to feature branch" |
122 " r%(revision)s"), | 125 " r%(revision)s"), |
123 deb_email="treepkg@example.com", | 126 deb_email="treepkg@example.com", |
135 svn_subset=[], | 138 svn_subset=[], |
136 svn_url="svn://example.com/simple/trunk", | 139 svn_url="svn://example.com/simple/trunk", |
137 version_template="1.0.svn%(revision)s", | 140 version_template="1.0.svn%(revision)s", |
138 git_url="", | 141 git_url="", |
139 git_branch="", | 142 git_branch="", |
140 builder_cls="PBuilder")]) | 143 builder_cls="PBuilder", |
144 os="foo os")]) | |
141 | 145 |
142 def main(): | 146 def main(): |
143 unittest.main() | 147 unittest.main() |
144 | 148 |
145 if __name__ == "__main__": | 149 if __name__ == "__main__": |