Skip to content

Commit

Permalink
Fail fast for poetry install command
Browse files Browse the repository at this point in the history
In case the `poetry install` command fails, we probably don't want to
continue in the execution anymore, so let's have a fail fast check
there.
  • Loading branch information
jstourac committed Apr 10, 2024
1 parent 13fb4aa commit ea67c95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ods_ci/run_robot_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,10 @@ if [[ ${SKIP_INSTALL} -eq 0 ]]; then
fi
fi

poetry --no-interaction install --sync
poetry install --no-interaction --sync || {
echo "[ERROR] poetry environment setup failed, aborting the execution!"
exit 1
}
fi
# shellcheck disable=SC1091
source "$(poetry env info --path)/bin/activate"
Expand Down

0 comments on commit ea67c95

Please sign in to comment.