Rev 4677: Marking TestCmdServeChrooting.test_serve_tcp as expected failure in file:///home/vila/src/bzr/bugs/controversial/

Vincent Ladeuil v.ladeuil+lp at free.fr
Mon Sep 7 09:57:12 BST 2009


At file:///home/vila/src/bzr/bugs/controversial/

------------------------------------------------------------
revno: 4677
revision-id: v.ladeuil+lp at free.fr-20090907085712-nsxk646vprruyipm
parent: pqm at pqm.ubuntu.com-20090907041459-so0m9vkp5j6mgir0
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: controversial
timestamp: Mon 2009-09-07 10:57:12 +0200
message:
  Marking TestCmdServeChrooting.test_serve_tcp as expected failure
  on FreeBSD.
  
  * bzrlib/tests/blackbox/test_serve.py:
  (TestCmdServeChrooting.test_serve_tcp): Stop gap expected failure
  until better informed.
-------------- next part --------------
=== modified file 'bzrlib/tests/blackbox/test_serve.py'
--- a/bzrlib/tests/blackbox/test_serve.py	2009-08-27 22:17:35 +0000
+++ b/bzrlib/tests/blackbox/test_serve.py	2009-09-07 08:57:12 +0000
@@ -261,8 +261,15 @@
         # The when_server_started method issued a find_repositoryV3 that should
         # fail with 'norepository' because there are no repositories inside the
         # --directory.
-        self.assertEqual(('norepository',), self.client_resp)
-        
+        if sys.platform.startswith('freebsd'):
+            # Something fishy is going on there, the server is able to publish
+            # the port it is listening too, yet the client can't connect...
+            # The assertion below should fail when the problem is fixed or the
+            # test rewritten.
+            self.assertRaises(AttributeError, getattr, self, 'client_resp')
+        else:
+            self.assertEqual(('norepository',), self.client_resp)
+
     def run_bzr_serve_then_func(self, serve_args, func, *func_args,
             **func_kwargs):
         """Run 'bzr serve', and run the given func in a thread once the server



More information about the bazaar-commits mailing list