Commit a3c38e7f authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: Make tests work:

 - hdr now takes priority over img
 - immv/imcp scripts now return exit code rather than raising an error
parent 2c369675
This diff is collapsed.
......@@ -440,12 +440,8 @@ def test_imcp_script_shouldFail(move=False):
cmd = cmd.replace('indir', indir).replace('outdir', outdir)
sp.call(cmd.split())
try:
if move: immv_script.main(imcp_args)
else: imcp_script.main(imcp_args)
assert False
except (RuntimeError, IOError, fslpath.PathError, ImageFileError):
pass
if move: assert immv_script.main(imcp_args) != 0
else: assert imcp_script.main(imcp_args) != 0
sp.call('chmod u+rwx {}'.format(indir) .split())
sp.call('chmod u+rwx {}'.format(outdir).split())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment