-if [ $exit_code -eq 1 ]; then echo "pytest run had failures"; exit 123; fi
-if [ $exit_code -eq 1 ] && ! echo $CI_MERGE_REQUEST_TITLE | grep -c --ignore-case "\[non[ -]*be\]"; then echo "pytest run had failures and non-BE flag not present"; exit 1; fi
-if [ $exit_code -eq 1 ]; then echo "pytest run had failures and non-BE flag present"; exit 123; fi
-if [ $exit_code -ne 0 ]; then echo "pytest run had errors"; exit $exit_code; fi;