From 1eed63a61244df9258573ec5e342fe99c5a04797 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 19 Sep 2021 23:40:40 +0200 Subject: [PATCH] Testing return values from run_tests --- bin/run_ci_tests.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/run_ci_tests.sh b/bin/run_ci_tests.sh index c17fbd7..bc0e2e7 100755 --- a/bin/run_ci_tests.sh +++ b/bin/run_ci_tests.sh @@ -27,14 +27,13 @@ install_repo() { run_tests() { echo "Running tests" pytest 2>&1 | tee "$TEST_LOG" + deactivate grep -e '^FAILED ' "$TEST_LOG" if [[ $? == 0 ]]; then - echo HERE FAIL return 2 # FAILURE fi - echo HERE PASS return 0 # PASSED } @@ -47,7 +46,6 @@ prepare_venv install_repo run_tests ret=$? -echo "RET: $ret" cleanup if [[ $ret == 0 ]]; then