Skip to content

Commit

Permalink
Merge pull request nipype#425 from effigies/test/fsl_output
Browse files Browse the repository at this point in the history
TEST: Fix FSL BET test
  • Loading branch information
djarecka committed Feb 22, 2021
2 parents b10049f + 5179b78 commit aa7231e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pydra/engine/tests/test_shelltask.py
Original file line number Diff line number Diff line change
Expand Up @@ -4040,12 +4040,13 @@ def change_name(file):
)

# TODO: not sure why this has to be string
in_file = Path(os.path.dirname(os.path.abspath(__file__))) / "data" / "foo.nii"
in_file = Path(__file__).parent / "data_tests" / "test.nii.gz"

# separate command into exec + args
shelly = ShellCommandTask(
name="bet_task", executable="bet", in_file=in_file, input_spec=bet_input_spec
)
out_file = shelly.output_dir / "test_brain.nii.gz"
assert shelly.inputs.executable == "bet"
assert shelly.cmdline == f"bet {in_file} {in_file}_brain"
assert shelly.cmdline == f"bet {in_file} {out_file}"
# res = shelly(plugin="cf")

0 comments on commit aa7231e

Please sign in to comment.