Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
erp5
Commits
63caf663
Commit
63caf663
authored
Aug 13, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: always try to use relative symlinks in unit test instance folder
parent
589c7865
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
product/ERP5Type/tests/runUnitTest.py
product/ERP5Type/tests/runUnitTest.py
+10
-10
No files found.
product/ERP5Type/tests/runUnitTest.py
View file @
63caf663
...
@@ -175,8 +175,7 @@ def initializeInstanceHome(tests_framework_home,
...
@@ -175,8 +175,7 @@ def initializeInstanceHome(tests_framework_home,
assert
(
os
.
path
.
isabs
(
tests_framework_home
)
assert
(
os
.
path
.
isabs
(
tests_framework_home
)
and
os
.
path
.
isabs
(
real_instance_home
)
and
os
.
path
.
isabs
(
real_instance_home
)
and
os
.
path
.
isabs
(
instance_home
))
and
os
.
path
.
isabs
(
instance_home
))
if
not
os
.
path
.
exists
(
instance_home
):
os
.
path
.
exists
(
instance_home
)
or
os
.
mkdir
(
instance_home
)
os
.
mkdir
(
instance_home
)
if
not
WIN
:
if
not
WIN
:
# Try to use relative symlinks
# Try to use relative symlinks
if
tests_framework_home
.
startswith
(
os
.
path
.
join
(
real_instance_home
,
if
tests_framework_home
.
startswith
(
os
.
path
.
join
(
real_instance_home
,
...
@@ -184,7 +183,8 @@ def initializeInstanceHome(tests_framework_home,
...
@@ -184,7 +183,8 @@ def initializeInstanceHome(tests_framework_home,
tests_framework_home
=
tests_framework_home
[
len
(
real_instance_home
)
+
1
:]
tests_framework_home
=
tests_framework_home
[
len
(
real_instance_home
)
+
1
:]
if
real_instance_home
==
os
.
path
.
dirname
(
instance_home
):
if
real_instance_home
==
os
.
path
.
dirname
(
instance_home
):
real_instance_home
=
'real_instance'
real_instance_home
=
'real_instance'
os
.
symlink
(
'..'
,
os
.
path
.
join
(
instance_home
,
real_instance_home
))
d
=
os
.
path
.
join
(
instance_home
,
real_instance_home
)
os
.
path
.
exists
(
d
)
or
os
.
symlink
(
'..'
,
d
)
old_pwd
=
os
.
getcwd
()
old_pwd
=
os
.
getcwd
()
try
:
try
:
os
.
chdir
(
instance_home
)
os
.
chdir
(
instance_home
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment