From 1052757240b10f855e0ec3a4da27ed81dfcd45b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Corr=C3=AAa=20da=20Silva=20Sanches?= Date: Wed, 25 Oct 2017 17:48:58 -0200 Subject: [PATCH] Make test/065 emit a WARN instead of FAILing (issue #1623) --- Lib/fontbakery/specifications/googlefonts.py | 8 ++++---- Lib/fontbakery/specifications/googlefonts_test.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Lib/fontbakery/specifications/googlefonts.py b/Lib/fontbakery/specifications/googlefonts.py index aacbd0afc4..93a9f62be0 100644 --- a/Lib/fontbakery/specifications/googlefonts.py +++ b/Lib/fontbakery/specifications/googlefonts.py @@ -2400,10 +2400,10 @@ def ligatures_str(ligs): # look_for_nonligated_kern_info(lookup.SubTable[0]) if remaining != {}: - yield FAIL, Message("lacks-kern-info", - ("GPOS table lacks kerning info for the following" - " non-ligated sequences: " - "{}").format(ligatures_str(remaining))) + yield WARN, Message("lacks-kern-info", + ("GPOS table lacks kerning info for the following" + " non-ligated sequences: " + "{}").format(ligatures_str(remaining))) else: yield PASS, ("GPOS table provides kerning info for " "all non-ligated sequences.") diff --git a/Lib/fontbakery/specifications/googlefonts_test.py b/Lib/fontbakery/specifications/googlefonts_test.py index dd15d7d353..51c2e2d83f 100644 --- a/Lib/fontbakery/specifications/googlefonts_test.py +++ b/Lib/fontbakery/specifications/googlefonts_test.py @@ -1277,10 +1277,10 @@ def test_id_065(): lig = ligatures(ttFont) has_kinfo = has_kerning_info(ttFont) - # So it must FAIL the test: - print ("Test FAIL with a bad font...") + # So it must emit a WARN in this test: + print ("Test WARN with a bad font...") status, message = list(test(ttFont, lig, has_kinfo))[-1] - assert status == FAIL and message.code == "lacks-kern-info" + assert status == WARN and message.code == "lacks-kern-info" def test_id_066():