[tests] preserve pytest status code
This commit is contained in:
parent
d4d3d97204
commit
67628092b4
1 changed files with 4 additions and 0 deletions
4
test.sh
4
test.sh
|
@ -23,6 +23,8 @@ else
|
||||||
python -m pytest fooder --disable-warnings -sv
|
python -m pytest fooder --disable-warnings -sv
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
status=$?
|
||||||
|
|
||||||
# unset test env values
|
# unset test env values
|
||||||
unset POSTGRES_USER
|
unset POSTGRES_USER
|
||||||
unset POSTGRES_DATABASE
|
unset POSTGRES_DATABASE
|
||||||
|
@ -32,3 +34,5 @@ unset REFRESH_SECRET
|
||||||
|
|
||||||
# if exists, remove test.db
|
# if exists, remove test.db
|
||||||
[ -f test.db ] && rm test.db
|
[ -f test.db ] && rm test.db
|
||||||
|
|
||||||
|
exit $status
|
||||||
|
|
Loading…
Reference in a new issue