Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
660bee34
Commit
660bee34
authored
Aug 03, 2018
by
Paul McCarthy
🚵
Browse files
TEST: Fix windows edge case where test data is on different drive to tempdir
parent
2299ef1d
Pipeline
#2324
passed with stages
in 11 minutes and 20 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
tests/test_immv_imcp.py
View file @
660bee34
...
...
@@ -359,7 +359,10 @@ def test_imcp_script_shouldPass(move=False):
imcp_args
[:
-
1
]
=
[
op
.
join
(
tindir
,
a
)
for
a
in
imcp_args
[:
-
1
]]
imcp_args
[
-
1
]
=
op
.
join
(
toutdir
,
imcp_args
[
-
1
])
imcp_args
=
[
op
.
relpath
(
a
,
reldir
)
for
a
in
imcp_args
]
for
i
,
a
in
enumerate
(
imcp_args
):
if
op
.
splitdrive
(
a
)[
0
]
==
op
.
splitdrive
(
reldir
)[
0
]:
imcp_args
[
i
]
=
op
.
relpath
(
a
,
reldir
)
print
(
'indir before: '
,
os
.
listdir
(
tindir
))
print
(
'outdir before: '
,
os
.
listdir
(
toutdir
))
...
...
Write
Preview
Supports
Markdown
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