aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/sanity/check_version.py
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-11-08 07:46:14 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-11-08 07:46:14 -0800
commit31606bdb34474d8728350ad45baf0e91b590b041 (patch)
tree8baab5e8dccd209a856a91a30e20394274d23636 /tools/run_tests/sanity/check_version.py
parent944d39d4f5ed34a87e5aac5ad236c120cfa89e84 (diff)
parent94277b611818e45c93be6e5811a1e5fff5339c86 (diff)
Merge github.com:grpc/grpc into grpc_slice
Diffstat (limited to 'tools/run_tests/sanity/check_version.py')
-rwxr-xr-xtools/run_tests/sanity/check_version.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/run_tests/sanity/check_version.py b/tools/run_tests/sanity/check_version.py
index 41dd5efe38..e62f390818 100755
--- a/tools/run_tests/sanity/check_version.py
+++ b/tools/run_tests/sanity/check_version.py
@@ -83,15 +83,15 @@ if not check_version(top_version):
for tag, value in settings.iteritems():
if re.match(r'^[a-z]+_version$', tag):
value = Version(value)
- if value.major != top_version.major:
- errors += 1
- print 'major version mismatch on %s: %d vs %d' % (tag, value.major, top_version.major)
- if value.minor != top_version.minor:
- errors += 1
- print 'minor version mismatch on %s: %d vs %d' % (tag, value.minor, top_version.minor)
+ if tag != 'core_version':
+ if value.major != top_version.major:
+ errors += 1
+ print 'major version mismatch on %s: %d vs %d' % (tag, value.major, top_version.major)
+ if value.minor != top_version.minor:
+ errors += 1
+ print 'minor version mismatch on %s: %d vs %d' % (tag, value.minor, top_version.minor)
if not check_version(value):
errors += 1
print warning % (tag, value)
sys.exit(errors)
-