Skip to content

Commit 61ecb9a

Browse files
committed
bin/test.sh: return non-zero when tests fail
Otherwise, the CI can erroneously pass.
1 parent 243ae23 commit 61ecb9a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

bin/test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ then
2323
else
2424
python -m pytest -p no:faulthandler tests/
2525
fi
26+
jpypeCode=$?
2627

2728
echo
2829
echo "-------------------------------------------"
@@ -63,4 +64,9 @@ if result:
6364
sys.exit(result)
6465
" > jep_test.py
6566
jgo -vv -r scijava.public=https://maven.scijava.org/content/groups/public -Djava.library.path="$site_packages/jep" black.ninia:jep:jep.Run+org.scijava:scijava-table jep_test.py
67+
jepCode=$?
6668
rm -f jep_test.py
69+
70+
test "$jpypeCode" -ne 0 && exit "$jpypeCode"
71+
test "$jepCode" -ne 0 && exit "$jepCode"
72+
exit 0

0 commit comments

Comments
 (0)