Rev 888: Skip executable test on platforms that don't support the executable bit. in file:///data/jelmer/bzr-svn/0.4.8/

Jelmer Vernooij jelmer at samba.org
Tue Mar 11 17:14:36 GMT 2008


At file:///data/jelmer/bzr-svn/0.4.8/

------------------------------------------------------------
revno: 888
revision-id:jelmer at samba.org-20080311171435-c9e399woeir800ka
parent: jelmer at samba.org-20080311171404-0k50g0pp407q5m0w
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4.8
timestamp: Tue 2008-03-11 18:14:35 +0100
message:
  Skip executable test on platforms that don't support the executable bit.
modified:
  tests/test_workingtree.py      test_workingtree.py-20060622191524-0di7bc3q1ckdbybb-1
=== modified file 'tests/test_workingtree.py'
--- a/tests/test_workingtree.py	2008-01-31 23:04:12 +0000
+++ b/tests/test_workingtree.py	2008-03-11 17:14:35 +0000
@@ -20,6 +20,7 @@
 from bzrlib.bzrdir import BzrDir
 from bzrlib.errors import NoSuchFile, OutOfDateTree
 from bzrlib.inventory import Inventory
+from bzrlib.osutils import has_symlinks, supports_executable
 from bzrlib.tests import KnownFailure
 from bzrlib.trace import mutter
 from bzrlib.workingtree import WorkingTree
@@ -421,6 +422,8 @@
         self.assertEqual(['.svn', 'bl'], list(tree.extras()))
 
     def test_executable(self):
+        if not supports_executable():
+            return
         self.make_client('a', 'dc')
         self.build_tree({"dc/bla": "data"})
         self.client_add("dc/bla")




More information about the bazaar-commits mailing list