[CalendarServer-changes] [8579] CalendarServer/branches/users/glyph/parallel-upgrade_to_1/ twistedcaldav/test/test_upgrade.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jan 24 00:58:08 PST 2012
Revision: 8579
http://trac.macosforge.org/projects/calendarserver/changeset/8579
Author: glyph at apple.com
Date: 2012-01-24 00:58:08 -0800 (Tue, 24 Jan 2012)
Log Message:
-----------
parallel version of the upgrade_to_1 test cases
Modified Paths:
--------------
CalendarServer/branches/users/glyph/parallel-upgrade_to_1/twistedcaldav/test/test_upgrade.py
Modified: CalendarServer/branches/users/glyph/parallel-upgrade_to_1/twistedcaldav/test/test_upgrade.py
===================================================================
--- CalendarServer/branches/users/glyph/parallel-upgrade_to_1/twistedcaldav/test/test_upgrade.py 2012-01-24 08:57:46 UTC (rev 8578)
+++ CalendarServer/branches/users/glyph/parallel-upgrade_to_1/twistedcaldav/test/test_upgrade.py 2012-01-24 08:58:08 UTC (rev 8579)
@@ -1597,3 +1597,15 @@
return True
except ValueError:
return False
+
+
+class ParallelUpgradeTests(UpgradeTests):
+ """
+ Tests for upgradeData in parallel.
+ """
+
+ def doUpgrade(self, config):
+ from txdav.common.datastore.upgrade.test.test_migrate import StubSpawner
+ spawner = StubSpawner(config)
+ return upgradeData(config, spawner, 2)
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120124/05e0645f/attachment.html>
More information about the calendarserver-changes
mailing list