diff options
author | James Godfrey-Kittle <jamesgk@google.com> | 2015-10-06 12:03:10 -0700 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk@google.com> | 2015-10-06 12:03:10 -0700 |
commit | 561fd3fd27641a5c89a5eec729234e2c786e8082 (patch) | |
tree | 212ed7ce6bdef1b4fdebfb13309e14790de149ad /scripts | |
parent | 3d5647ab136893c3af064dd32ff4442cd40ebe5e (diff) |
Test version string, revision # as separate values
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/common_tests.py | 3 | ||||
-rwxr-xr-x | scripts/run_general_tests.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/common_tests.py b/scripts/common_tests.py index fc84730..c58bdce 100644 --- a/scripts/common_tests.py +++ b/scripts/common_tests.py @@ -130,7 +130,8 @@ class TestMetaInfo(FontTest): for font in self.fonts: version = font_data.font_version(font) usable_part_of_version = version.split(';')[0] - self.assertEqual(usable_part_of_version, self.expected_version) + self.assertEqual(usable_part_of_version, + 'Version ' + self.expected_version) revision = font_data.printable_font_revision(font, accuracy=5) self.assertEqual(revision, self.expected_version) diff --git a/scripts/run_general_tests.py b/scripts/run_general_tests.py index ca0b431..193cc5a 100755 --- a/scripts/run_general_tests.py +++ b/scripts/run_general_tests.py @@ -52,7 +52,7 @@ class TestMetaInfo(common_tests.TestMetaInfo): mark_heavier_as_bold = True test_us_weight = None - #expected_version = 'Version 2.' + roboto_data.get_build_number() + #expected_version = '2.' + roboto_data.get_build_number() test_version_numbers = None # fsType of 0 marks the font free for installation, embedding, etc. |