Skip to content

Commit

Permalink
CI: Reuse UUID, rather than generating new
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Aug 29, 2020
1 parent 9c1b50f commit 25f610c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -653,10 +653,10 @@ jobs:
- run:
name: Generate report with one artificial error
command: |
set -x
sudo mv /tmp/${DATASET}/derivatives/fmriprep/sub-100185.html \
/tmp/${DATASET}/derivatives/fmriprep/sub-100185_noerror.html
UUID="$(date '+%Y%m%d-%H%M%S_')$(uuidgen)"
mkdir -p /tmp/${DATASET}/derivatives/fmriprep/sub-100185/log/$UUID/
UUID=$(grep uuid /tmp/${DATASET}/work/*/config.toml | cut -d\" -f 2)
cp /tmp/src/fmriprep/fmriprep/data/tests/crash_files/*.txt \
/tmp/${DATASET}/derivatives/fmriprep/sub-100185/log/$UUID/
set +e
Expand All @@ -666,7 +666,7 @@ jobs:
/tmp/data/${DATASET} /tmp/${DATASET}/derivatives participant \
--fs-no-reconall --sloppy --write-graph \
--output-spaces MNI152NLin2009cAsym:res-2 anat func \
--reports-only --config-file /tmp/${DATASET}/work/*/config.toml
--reports-only --config-file /tmp/${DATASET}/work/${UUID}/config.toml -vv
RET=$?
set -e
[[ "$RET" -eq "1" ]]
Expand Down

0 comments on commit 25f610c

Please sign in to comment.