From 561fd3fd27641a5c89a5eec729234e2c786e8082 Mon Sep 17 00:00:00 2001 From: James Godfrey-Kittle Date: Tue, 6 Oct 2015 12:03:10 -0700 Subject: Test version string, revision # as separate values --- scripts/common_tests.py | 3 ++- scripts/run_general_tests.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') 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. -- cgit v1.2.3