Skip to content
Snippets Groups Projects
Commit e86b4573 authored by David Garcia Quintas's avatar David Garcia Quintas
Browse files

fixed check nanopb sanity script

parent 0d2df65c
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ set -ex
apt-get install -y autoconf automake libtool curl python-virtualenv
readonly NANOPB_TMP_OUTPUT="${LOCAL_GIT_ROOT}/gens/src/proto/grpc/lb/v0"
readonly NANOPB_TMP_OUTPUT="$(mktemp -d)"
# install protoc version 3
pushd third_party/protobuf
......@@ -62,10 +62,7 @@ PATH="$PROTOC_PATH:$PATH" ./tools/codegen/core/gen_load_balancing_proto.sh \
$NANOPB_TMP_OUTPUT
# compare outputs to checked compiled code
diff -rq $NANOPB_TMP_OUTPUT src/core/proto/grpc/lb/v0
if [ $? != 0 ]; then
if ! diff -r $NANOPB_TMP_OUTPUT src/core/proto/grpc/lb/v0; then
echo "Outputs differ: $NANOPB_TMP_OUTPUT vs src/core/proto/grpc/lb/v0"
exit 1
exit 2
fi
rm -Rf "${LOCAL_GIT_ROOT}/gens"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment