Skip to content

Commit 6c63ad9

Browse files
committed
[FIX] Ensure build fails in Circle when tests fail
- Added a dummy test that always fails
1 parent 048413e commit 6c63ad9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docker/files/run_pytests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ fi
4040
# Collect crashfiles
4141
find ${WORKDIR} -name "crash-*" -maxdepth 1 -exec mv {} ${WORKDIR}/crashfiles/ \;
4242

43+
echo "Unit tests finished with exit code ${exit_code}"
4344
exit ${exit_code}
45+

nipype/tests/test_nipype.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ def test_nipype_info():
66
get_info()
77
except Exception as e:
88
exception_not_raised = False
9-
assert exception_not_raised
9+
assert exception_not_raised
10+
11+
def test_fail_always():
12+
assert False
13+

0 commit comments

Comments
 (0)