Skip to content

Commit 17d205d

Browse files
committed
circle tests - write txt crashfiles
1 parent b338e4f commit 17d205d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docker/files/run_examples.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ echo "utils_level = DEBUG" >> ${HOME}/.nipype/nipype.cfg
1616
echo "log_to_file = true" >> ${HOME}/.nipype/nipype.cfg
1717
echo "log_directory = ${WORKDIR}/logs/example_${example_id}" >> ${HOME}/.nipype/nipype.cfg
1818

19+
echo '[execution]' >> ${HOME}/.nipype/nipype.cfg
20+
echo 'crashfile_format = txt' >> ${HOME}/.nipype/nipype.cfg
21+
1922
if [[ "${NIPYPE_RESOURCE_MONITOR:-0}" == "1" ]]; then
20-
echo '[execution]' >> ${HOME}/.nipype/nipype.cfg
2123
echo 'resource_monitor = true' >> ${HOME}/.nipype/nipype.cfg
2224
echo 'resource_monitor_frequency = 3' >> ${HOME}/.nipype/nipype.cfg
2325
fi

docker/files/run_pytests.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ echo '[logging]' > ${HOME}/.nipype/nipype.cfg
1717
echo 'log_to_file = true' >> ${HOME}/.nipype/nipype.cfg
1818
echo "log_directory = ${WORKDIR}/logs/py${PYTHON_VERSION}" >> ${HOME}/.nipype/nipype.cfg
1919

20+
echo '[execution]' >> ${HOME}/.nipype/nipype.cfg
21+
echo 'crashfile_format = txt' >> ${HOME}/.nipype/nipype.cfg
22+
2023
# Enable resource_monitor tests only for python 2.7
2124
if [[ "${PYTHON_VERSION}" -lt "30" ]]; then
22-
echo '[execution]' >> ${HOME}/.nipype/nipype.cfg
2325
echo 'resource_monitor = true' >> ${HOME}/.nipype/nipype.cfg
2426
fi
2527

@@ -30,7 +32,6 @@ exit_code=$?
3032

3133
# Workaround: run here the profiler tests in python 3
3234
if [[ "${PYTHON_VERSION}" -ge "30" ]]; then
33-
echo '[execution]' >> ${HOME}/.nipype/nipype.cfg
3435
echo 'resource_monitor = true' >> ${HOME}/.nipype/nipype.cfg
3536
export COVERAGE_FILE=${WORKDIR}/tests/.coverage.py${PYTHON_VERSION}_extra
3637
py.test -v --junitxml=${WORKDIR}/tests/pytests_py${PYTHON_VERSION}_extra.xml --cov nipype --cov-report xml:${WORKDIR}/tests/coverage_py${PYTHON_VERSION}_extra.xml /src/nipype/nipype/utils/tests/test_profiler.py /src/nipype/nipype/pipeline/plugins/tests/test_multiproc*.py

0 commit comments

Comments
 (0)