From 9310836bbd595e451b62494b89851c295d958ba2 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 19 Sep 2021 23:37:43 +0200 Subject: [PATCH] Testing return values from run_tests --- bin/run_ci_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/run_ci_tests.sh b/bin/run_ci_tests.sh index bf83cbd..c17fbd7 100755 --- a/bin/run_ci_tests.sh +++ b/bin/run_ci_tests.sh @@ -27,13 +27,14 @@ install_repo() { run_tests() { echo "Running tests" pytest 2>&1 | tee "$TEST_LOG" - cat "$TEST_LOG" grep -e '^FAILED ' "$TEST_LOG" if [[ $? == 0 ]]; then + echo HERE FAIL return 2 # FAILURE fi + echo HERE PASS return 0 # PASSED }