Skip to content

Commit 4883211

Browse files
committed
mv final resource_monitor.json to logs/ folder
1 parent 34f9824 commit 4883211

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/files/run_examples.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ fi
3333
coverage run /src/nipype/tools/run_examples.py $@
3434
exit_code=$?
3535

36+
if [[ "${NIPYPE_RESOURCE_MONITOR:-0}" == "1" ]]; then
37+
cp resource_monitor.json 2>/dev/null ${WORKDIR}/logs/example_${example_id}/ || :
38+
fi
3639
# Collect crashfiles and generate xml report
3740
coverage xml -o ${WORKDIR}/tests/smoketest_${example_id}.xml
3841
find /work -maxdepth 1 -name "crash-*" -exec mv {} ${WORKDIR}/crashfiles/ \;
3942
exit $exit_code
40-

0 commit comments

Comments
 (0)