Pass error return code of example scripts and exit

This commit is contained in:
Johannes Schönberger
2013-04-28 13:27:44 +02:00
parent b909aa692b
commit d3b70a89b5
+1 -1
View File
@@ -31,4 +31,4 @@ script:
# Change back to repository root directory and run all doc examples
- cd ..
- "echo 'backend : Agg' > matplotlibrc"
- for f in doc/examples/*.py; do $PYTHON "$f"; done
- for f in doc/examples/*.py; do $PYTHON "$f"; if [ $? -ne 0 ]; then exit $?; fi done