Docker: Check for unraisable exception in test_ase.sh

This commit is contained in:
Ole Schütt 2019-08-16 22:22:36 +02:00 committed by Ole Schütt
parent fcf555a77c
commit 287683ddc2

View file

@ -34,7 +34,10 @@ set -e # abort if error is encountered
for i in ./ase/test/cp2k/cp2k_*.py
do
echo "Running $i ..."
python3 "$i"
python3 "$i" |& tee "/tmp/test_ase.out"
if grep "Exception ignored" "/tmp/test_ase.out" ; then
exit 1 # Found unraisable exception, e.g. in __del__.
fi
done
)