Skip to content

Commit

Permalink
Ensure checksum command exists
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiitk committed Apr 27, 2024
1 parent c69c643 commit 8f28619
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .kokoro/psm_interop_kokoro_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,11 @@ test_driver_compile_protos() {
--grpc_python_out="${TEST_DRIVER_FULL_DIR}" \
"${protos[@]}"
local protos_out_dir="${TEST_DRIVER_FULL_DIR}/${TEST_DRIVER_PROTOS_PATH}"
psm::tools::log "Generated files ${protos_out_dir}:"
find "${protos_out_dir}" -type f -exec md5sum {} \;

if command -v sha256sum &> /dev/null; then
psm::tools::log "Generated files ${protos_out_dir}:"
find "${protos_out_dir}" -type f -exec sha256sum {} \;
fi
}

#######################################
Expand Down

0 comments on commit 8f28619

Please sign in to comment.