[Treepkg-commits] r22 - trunk/test
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Nov 26 15:45:20 CET 2007
Author: bh
Date: 2007-11-26 15:45:19 +0100 (Mon, 26 Nov 2007)
New Revision: 22
Modified:
trunk/test/test_packager.py
Log:
revert previous change; it was committed accidentally
Modified: trunk/test/test_packager.py
===================================================================
--- trunk/test/test_packager.py 2007-11-26 14:34:17 UTC (rev 21)
+++ trunk/test/test_packager.py 2007-11-26 14:45:19 UTC (rev 22)
@@ -108,7 +108,7 @@
for message, files in self.revisions:
add_svn_files(self.svnworkdir, files, message)
- def runtest(self, debrevision, group_args=None, **extra_track_args):
+ def runtest(self, debrevision, **extra_track_args):
rootcmd = os.path.join(os.path.dirname(__file__), os.pardir, "test",
"mocksudopbuilder.py")
track = PackageTrack(name="testpkg", base_dir=self.trackdir,
@@ -117,10 +117,7 @@
deb_email="treepkg at example.com",
deb_fullname="treepkg tester",
**extra_track_args)
-
- if group_args is None:
- group_args = {}
- group = PackagerGroup([track], 1, **group_args)
+ group = PackagerGroup([track], 1)
group.check_package_tracks()
# determine version that has been packaged. This assumes that
@@ -154,23 +151,6 @@
def test_custom_debrevision_prefix(self):
self.runtest("kk1", debrevision_prefix="kk")
-
-class TestPackerWithMultipleRevisions(PackagerTest):
-
- revisions = [
- ("Initial Revision",
- [("README", "and miles to go before I sleep")]),
- ("Add some code",
- [("program.c", "int main(void) { return 0; }")]),
- ("Add some more code",
- [("another.c", "int main(void) { return 1; }")]),
- ]
-
- def test_default_debrevision_prefix(self):
- self.runtest("treepkg1")
- self.runtest("treepkg1", group_args=dict(revision=3)
-
-
class StoppingPackager(treepkg.packager.RevisionPackager):
def package(self):
More information about the Treepkg-commits
mailing list