aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/sanity/check_version.py
diff options
context:
space:
mode:
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)
-