mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 22:25:32 -04:00
Docker: Check for unraisable exception in test_ase.sh
This commit is contained in:
parent
fcf555a77c
commit
287683ddc2
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue