PATCH : fix some win32 testing issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Subversion Plugin |
Fix Released
|
Medium
|
Jelmer Vernooij |
Bug Description
=== modified file 'tests/__init__.py'
--- tests/__init__.py 2008-01-31 23:04:12 +0000
+++ tests/__init__.py 2008-02-01 23:49:35 +0000
@@ -17,6 +17,7 @@
"""Tests for the bzr-svn plugin."""
import os
+import sys
import bzrlib
from bzrlib import osutils
from bzrlib.bzrdir import BzrDir
@@ -46,12 +47,11 @@
:return: Handle to the repository.
"""
abspath = os.path.
- repos_url = "file://%s" % abspath
-
+
-
+
if allow_revprop_
- if os.name == 'win32':
+ if sys.platform == 'win32':
else:
@@ -59,6 +59,10 @@
+ if sys.platform == 'win32':
+ abspath = '/' + abspath # The root of the filesystem on win32 is one level above the "drives"
+ repos_url = "file://%s" % abspath
+
return repos_url
def make_remote_
=== modified file 'tests/
--- tests/test_
+++ tests/test_
@@ -345,6 +345,9 @@
repos = self.load_
+ abspath = self.test_dir
+ if sys.platform == 'win32':
+ abspath = '/' + abspath
branch = Branch.
=== modified file 'tests/
--- tests/test_push.py 2008-01-28 22:52:09 +0000
+++ tests/test_push.py 2008-02-01 23:44:07 +0000
@@ -148,7 +148,7 @@
def test_symlink(self):
- if os.name == 'win32':
+ if sys.platform == 'win32':
return
assert os.path.
=== modified file 'tests/
--- tests/test_repos.py 2008-01-29 22:26:01 +0000
+++ tests/test_repos.py 2008-02-01 23:44:35 +0000
@@ -152,6 +152,9 @@
repos = Repository.
+ abspath = self.test_dir
+ if sys.platform == 'win32':
+ abspath = '/' + abspath
def test_get_
Related branches
Changed in bzr-svn: | |
status: | New → Fix Committed |
Changed in bzr-svn: | |
assignee: | nobody → jelmer |
importance: | Undecided → Medium |
Changed in bzr-svn: | |
milestone: | none → 0.4.8 |
status: | Fix Committed → Fix Released |
Merged, thanks!
status fixcommitted samba.org/ ~jelmer/
--
Jelmer Vernooij <email address hidden> - http://
Jabber: <email address hidden>