Rev 887: Skip symlink test on systems that don't uspport symlinks. in file:///data/jelmer/bzr-svn/0.4.8/
Jelmer Vernooij
jelmer at samba.org
Tue Mar 11 17:14:05 GMT 2008
At file:///data/jelmer/bzr-svn/0.4.8/
------------------------------------------------------------
revno: 887
revision-id:jelmer at samba.org-20080311171404-0k50g0pp407q5m0w
parent: jelmer at samba.org-20080311171343-5qv4g5g8m0rx6wzq
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4.8
timestamp: Tue 2008-03-11 18:14:04 +0100
message:
Skip symlink test on systems that don't uspport symlinks.
modified:
tests/test_fetch.py test_fetch.py-20070624210302-luvgwjmlfysk5qeq-1
=== modified file 'tests/test_fetch.py'
--- a/tests/test_fetch.py 2008-02-01 00:02:46 +0000
+++ b/tests/test_fetch.py 2008-03-11 17:14:04 +0000
@@ -20,6 +20,7 @@
import shutil
from bzrlib.branch import Branch
from bzrlib.bzrdir import BzrDir
+from bzrlib.osutils import has_symlinks
from bzrlib.repository import Repository
from bzrlib.revision import NULL_REVISION
from bzrlib.tests import TestSkipped, KnownFailure
@@ -1423,6 +1424,8 @@
self.assertTrue(inv1[inv1.path2id("blie")].executable)
def test_fetch_symlink(self):
+ if not has_symlinks():
+ return
repos_url = self.make_client('d', 'dc')
self.build_tree({'dc/bla': "data"})
os.symlink('bla', 'dc/mylink')
More information about the bazaar-commits
mailing list