From 67628092b460cc720f99eb718c93f4d65c4cfad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Doma=C5=84ski?= Date: Mon, 20 May 2024 12:20:30 +0200 Subject: [PATCH] [tests] preserve pytest status code --- test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test.sh b/test.sh index 737cece..5c4bc8f 100755 --- a/test.sh +++ b/test.sh @@ -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