[tests] preserve pytest status code

This commit is contained in:
Piotr Domański 2024-05-20 12:20:30 +02:00
parent d4d3d97204
commit 67628092b4

View file

@ -23,6 +23,8 @@ else
python -m pytest fooder --disable-warnings -sv
fi
status=$?
# unset test env values
unset POSTGRES_USER
unset POSTGRES_DATABASE
@ -32,3 +34,5 @@ unset REFRESH_SECRET
# if exists, remove test.db
[ -f test.db ] && rm test.db
exit $status