Rev 4607: Make test_smart tests more stable when the default format changes. in http://bazaar.launchpad.net/~lifeless/bzr/remote-tests
Robert Collins
robertc at robertcollins.net
Fri Aug 14 04:10:44 BST 2009
At http://bazaar.launchpad.net/~lifeless/bzr/remote-tests
------------------------------------------------------------
revno: 4607
revision-id: robertc at robertcollins.net-20090814031039-hwo7evzbn24wu5jc
parent: pqm at pqm.ubuntu.com-20090814002017-l0qxa8jj76sige97
committer: Robert Collins <robertc at robertcollins.net>
branch nick: remote-tests
timestamp: Fri 2009-08-14 13:10:39 +1000
message:
Make test_smart tests more stable when the default format changes.
=== modified file 'bzrlib/tests/test_smart.py'
--- a/bzrlib/tests/test_smart.py 2009-07-23 07:37:05 +0000
+++ b/bzrlib/tests/test_smart.py 2009-08-14 03:10:39 +0000
@@ -202,7 +202,7 @@
self.make_bzrdir('.')
request_class = bzrlib.smart.bzrdir.SmartServerRequestCreateRepository
request = request_class(backing)
- reference_bzrdir_format = bzrdir.format_registry.get('default')()
+ reference_bzrdir_format = bzrdir.format_registry.get('pack-0.92')()
reference_format = reference_bzrdir_format.repository_format
network_name = reference_format.network_name()
expected = SuccessfulSmartServerResponse(
@@ -247,17 +247,21 @@
subtrees = 'yes'
else:
subtrees = 'no'
+ if repo._format.supports_external_lookups:
+ external = 'yes'
+ else:
+ external = 'no'
if (smart.bzrdir.SmartServerRequestFindRepositoryV3 ==
self._request_class):
return SuccessfulSmartServerResponse(
- ('ok', '', rich_root, subtrees, 'no',
+ ('ok', '', rich_root, subtrees, external,
repo._format.network_name()))
elif (smart.bzrdir.SmartServerRequestFindRepositoryV2 ==
self._request_class):
# All tests so far are on formats, and for non-external
# repositories.
return SuccessfulSmartServerResponse(
- ('ok', '', rich_root, subtrees, 'no'))
+ ('ok', '', rich_root, subtrees, external))
else:
return SuccessfulSmartServerResponse(('ok', '', rich_root, subtrees))
More information about the bazaar-commits
mailing list