tests/functional: Require same version of protoc everwhere

The main genproto.sh script requires latest version, this confirms the
test protoc to do the same.
This commit is contained in:
Lili Cosic 2021-05-20 11:27:51 +02:00
parent fe2a9bd7e9
commit b23ab1f759

View File

@ -6,9 +6,9 @@ if ! [[ "$0" =~ "scripts/genproto.sh" ]]; then
exit 255
fi
# for now, be conservative about what version of protoc we expect
if ! [[ $(protoc --version) =~ "3.7.1" ]]; then
echo "could not find protoc 3.7.1, is it installed + in PATH?"
# protoc version should be the same as one in main etcd scripts.
if [[ $(protoc --version | cut -f2 -d' ') != "3.14.0" ]]; then
echo "could not find protoc 3.14.0, is it installed + in PATH?"
exit 255
fi