Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion scripts/ci/testing/run_unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ function providers_tests() {
exit 1
fi
set -e
if [[ ${RESULT} != "0" ]]; then
# If pytest returns exit code 1 (no tests collected) for DB-only runs, treat it as success
# to avoid failing CI when there are simply no DB tests defined for the group.
if [[ ${RESULT} == "1" && "${TEST_SCOPE}" == "DB" ]]; then
echo
echo "${COLOR_YELLOW}No DB tests were collected for ${TEST_GROUP}; treating as success.${COLOR_RESET}"
elif [[ ${RESULT} != "0" ]]; then
echo
echo "${COLOR_RED}The ${TEST_GROUP} test ${TEST_SCOPE} failed! Giving up${COLOR_RESET}"
echo
Expand Down
Loading