Skip to content

Commit

Permalink
CI: Restore expected outputs checks
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Nov 16, 2023
1 parent f71fb1d commit be5ba8f
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,30 @@ _setup_fmriprep_docker: &setup_fmriprep_docker
pip install --upgrade /tmp/src/fmriprep/wrapper/
_check_outputs: &check_outputs
name: Show outputs of fMRIPrep run
name: Check outputs of fMRIPrep run
command: |
find /tmp/${DATASET}/${SUBDIR:-fmriprep} \( -path '*/figures' -o -path '*/log' -o -path '*/sourcedata' \) -prune -o -name "*" -print | cut -d/ -f 5- | sort
set +e -x
mkdir -p /tmp/${DATASET}/test
find /tmp/${DATASET}/${SUBDIR:-fmriprep} \
\( -path '*/figures' -o -path '*/log' -o -path '*/sourcedata' \) \
-prune -o -name "*" -print | cut -d/ -f 5- | sort > /tmp/${DATASET}/test/outputs.out
FASTTRACK_OUTPUTS="${DATASET}${VARIANT}_fasttrack_outputs.txt"
FULL_OUTPUTS="${DATASET}${VARIANT}_outputs.txt"
RET=1
if [ ! -f /tmp/.nofasttrack ]; then
echo "Checking fasttrack..."
sort /tmp/src/fmriprep/.circleci/${FASTTRACK_OUTPUTS} > /tmp/${DATASET}/test/fasttrack.out
diff /tmp/${DATASET}/test/{fasttrack,outputs}.out
RET=$?
fi
if [ $RET -ne 0 ]; then
echo "Checking full..."
sort /tmp/src/fmriprep/.circleci/${FULL_OUTPUTS} > /tmp/${DATASET}/test/full.out
diff /tmp/${DATASET}/test/{full,outputs}.out
RET=$?
fi
exit $RET
version: 2.1
aliases:
Expand Down

0 comments on commit be5ba8f

Please sign in to comment.