Skip to content
Snippets Groups Projects
Commit 660bee34 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: Fix windows edge case where test data is on different drive to tempdir

parent 2299ef1d
No related branches found
Tags 1.10.1
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment