Skip to content

Commit 8f28619

Browse files
committed
Ensure checksum command exists
1 parent c69c643 commit 8f28619

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.kokoro/psm_interop_kokoro_lib.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,11 @@ test_driver_compile_protos() {
838838
--grpc_python_out="${TEST_DRIVER_FULL_DIR}" \
839839
"${protos[@]}"
840840
local protos_out_dir="${TEST_DRIVER_FULL_DIR}/${TEST_DRIVER_PROTOS_PATH}"
841-
psm::tools::log "Generated files ${protos_out_dir}:"
842-
find "${protos_out_dir}" -type f -exec md5sum {} \;
841+
842+
if command -v sha256sum &> /dev/null; then
843+
psm::tools::log "Generated files ${protos_out_dir}:"
844+
find "${protos_out_dir}" -type f -exec sha256sum {} \;
845+
fi
843846
}
844847

845848
#######################################

0 commit comments

Comments
 (0)