Skip to content

Commit

Permalink
fix: abrupt exist upon ci failure
Browse files Browse the repository at this point in the history
  • Loading branch information
pixincreate committed Dec 19, 2024
1 parent ed276ec commit 5950122
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/execute_cypress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ function read_service_arrays() {
# Loop through the associative array and check if each service is exported
for var in "${!services[@]}"; do
if [[ -n "${!var+x}" ]]; then
# Ensure the variable is split correctly into an array
eval "${services[$var]}=($(echo "${!var}" | tr ' ' '\n'))"
connector_map+=("${services[$var]}")
else
print_color "yellow" "Environment variable ${var} is not set. Skipping..."
Expand Down Expand Up @@ -114,7 +116,6 @@ function run_tests() {
failed_connectors=($(< "${tmp_file}"))
print_color "red" "One or more connectors failed to run:"
printf '%s\n' "${failed_connectors[@]}"
exit 1
else
print_color "green" "Cypress tests execution successful!"
fi
Expand Down

0 comments on commit 5950122

Please sign in to comment.