adobe-type-tools / afdko

Adobe Font Development Kit for OpenType
https://adobe-type-tools.github.io/afdko/
Other
1.04k stars 169 forks source link

aarch64-linux test failure #1425

Open sternenseemann opened 2 years ago

sternenseemann commented 2 years ago

I only can reproduce this on aarch64 ~(only tested binfmt so far)~:

============================= test session starts ==============================
platform linux -- Python 3.9.6, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /build/afdko-3.7.1, configfile: setup.cfg
collected 1308 items                                                           

tests/buildcff2vf_test.py ...........                                    [  0%]
tests/buildmasterotfs_test.py ....................                       [  2%]
tests/checkoutlinesufo_test.py .................                         [  3%]
tests/comparefamily_test.py .....                                        [  4%]
tests/convertfonttocid_test.py ....                                      [  4%]
tests/detype1_test.py ....                                               [  4%]
tests/differ_test.py ...............................                     [  7%]
tests/fdkutils_test.py ............................ssss..........        [ 10%]
tests/fontpdf_test.py ..                                                 [ 10%]
tests/makeinstancesufo_test.py ......................................... [ 13%]
....                                                                     [ 13%]
tests/makeotf_test.py .................................................. [ 17%]
......................................................................   [ 23%]
tests/makeotfexe_test.py ............................................... [ 26%]
...................................x.......x..........x................. [ 32%]
...............................xx...........x..xx....................... [ 37%]
........................................................................ [ 43%]
........................................................................ [ 48%]
.......................F................................................ [ 54%]
.......                                                                  [ 54%]
tests/mergefonts_test.py ........                                        [ 55%]
tests/otc2otf_test.py ...................                                [ 56%]
tests/otf2otc_test.py ...............                                    [ 57%]
tests/otf2ttf_test.py ..................                                 [ 59%]
tests/proofpdf_test.py ............................................      [ 62%]
tests/rotatefont_test.py ..................                              [ 63%]
tests/runner_test.py ................                                    [ 65%]
tests/sfntdiff_test.py ................                                  [ 66%]
tests/sfntedit_test.py ...........                                       [ 67%]
tests/spot_test.py ..................................................... [ 71%]
..                                                                       [ 71%]
tests/ttfcomponentizer_test.py .......................                   [ 73%]
tests/ttfdecomponentizer_test.py ...............                         [ 74%]
tests/ttxn_test.py .............                                         [ 75%]
tests/tx_test.py ....................................................... [ 79%]
........................................................................ [ 85%]
........................................................................ [ 90%]
........................................................................ [ 96%]
...............................................                          [ 99%]
tests/type1_test.py ....                                                 [100%]

=================================== FAILURES ===================================
_ test_spec[/build/afdko-3.7.1/tests/makeotfexe_data/input/spec/9e-15.bad.fea] _

path = '/build/afdko-3.7.1/tests/makeotfexe_data/input/spec/9e-15.bad.fea'

    @pytest.mark.parametrize('path', glob.glob(get_input_path("spec/*.fea")))
    def test_spec(path):
        name = os.path.splitext(os.path.basename(path))[0]
        if ".cid" in name:
            input_filename = "spec/fontcid.ps"
        else:
            input_filename = "spec/font.pfa"
        feat_filename = f"spec/{name}.fea"
        ttx_filename = f"spec/{name}.ttx"
        cmap_filename = "spec/Identity-H"
        actual_path = get_temp_file_path()

        cmd = CMD + ['-o', 'f', f'_{get_input_path(input_filename)}',
                           'ff', f'_{get_input_path(feat_filename)}',
                           'o', f'_{actual_path}',
                           'ch', f'_{get_input_path(cmap_filename)}']

        if name.endswith(".bad"):
            with pytest.raises(subprocess.CalledProcessError):
>               runner(cmd)
E               Failed: DID NOT RAISE <class 'subprocess.CalledProcessError'>

tests/makeotfexe_test.py:670: Failed
----------------------------- Captured stderr call -----------------------------
makeotfexe processing font <Untitled1>
WARNING: FontMenuNameDB file was not specified or not found. [Untitled1]
WARNING: Negative internal leading: win.ascent + win.descent < unitsPerEm
=========================== short test summary info ============================
zhaofengli commented 2 years ago

I'm observing the same failure happening on riscv64-linux.