$pip install --user jsonschema
echo "Checking votes:"
-lftools infofile check-votes INFO.yaml "$GERRIT_URL" "$ref" > gerrit_comment.txt
+lftools infofile check-votes INFO.yaml "$GERRIT_URL" \
+ "$ref" > gerrit_comment.txt
exit_status="$?"
if [[ "$exit_status" -ne 0 ]]; then
exit "$exit_status"
else
echo "Vote completed submitting review"
- ssh -p "$GERRIT_PORT" "$USER"@"$GERRIT_HOST" gerrit review "$GERRIT_PATCHSET_REVISION" --verified 1
+ ssh -p "$GERRIT_PORT" "$USER"@"$GERRIT_HOST" gerrit review \
+ "$GERRIT_PATCHSET_REVISION" --verified 1
sleep 5
- ssh -p "$GERRIT_PORT" "$USER"@"$GERRIT_HOST" gerrit review "$GERRIT_PATCHSET_REVISION" --submit
+ ssh -p "$GERRIT_PORT" "$USER"@"$GERRIT_HOST" gerrit review \
+ "$GERRIT_PATCHSET_REVISION" --submit
fi