From 86038ef51273d38339ab0f06fef6d3e03e58a836 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 3 Sep 2023 20:15:31 +0200 Subject: [PATCH] check_layout.py: Deterministic output order --- check_layout.output | 16 ++++++++-------- check_layout.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/check_layout.output b/check_layout.output index 5400c0f..f12b92d 100644 --- a/check_layout.output +++ b/check_layout.output @@ -2,6 +2,9 @@ Layout includes some ASCII punctuation but not all, missing: !, ", ', +, -, /, :, ;, <, =, >, ?, [, \, ], _, |, ~ Layout doesn't define some important keys, missing: f11_placeholder, f12_placeholder 2 warnings +# res/xml/arab_pc.xml +Layout includes some ASCII punctuation but not all, missing: !, ', +, ;, ?, \, | +1 warnings # res/xml/arab_pc_ckb.xml Layout includes some ASCII punctuation but not all, missing: ", %, ', +, ,, ., :, ;, <, =, >, ?, `, |, ~ 1 warnings @@ -9,9 +12,6 @@ Layout includes some ASCII punctuation but not all, missing: ", %, ', +, ,, ., : Duplicate keys: (, ) Layout includes some ASCII punctuation but not all, missing: ", %, ', ,, /, ;, <, =, >, ?, [, \, ], `, {, |, } 2 warnings -# res/xml/arab_pc.xml -Layout includes some ASCII punctuation but not all, missing: !, ', +, ;, ?, \, | -1 warnings # res/xml/beng_national.xml Layout includes some ASCII punctuation but not all, missing: $ Layout doesn't define some important keys, missing: f11_placeholder, f12_placeholder @@ -94,13 +94,15 @@ Layout doesn't define some important keys, missing: f11_placeholder, f12_placeho # res/xml/latn_qwerty_vi.xml Layout includes some ASCII punctuation but not all, missing: \ 1 warnings +# res/xml/latn_qwertz.xml +0 warnings +# res/xml/latn_qwertz_cz.xml +Layout doesn't define some important keys, missing: f11_placeholder, f12_placeholder +1 warnings # res/xml/latn_qwertz_cz_multifunctional.xml Layout includes some ASCII punctuation but not all, missing: ` Layout doesn't define some important keys, missing: f11_placeholder, f12_placeholder 2 warnings -# res/xml/latn_qwertz_cz.xml -Layout doesn't define some important keys, missing: f11_placeholder, f12_placeholder -1 warnings # res/xml/latn_qwertz_de.xml 0 warnings # res/xml/latn_qwertz_fr_ch.xml @@ -111,8 +113,6 @@ Layout doesn't define some important keys, missing: f11_placeholder, f12_placeho Layout includes some ASCII punctuation but not all, missing: \, ` Layout doesn't define some important keys, missing: f11_placeholder, f12_placeholder 2 warnings -# res/xml/latn_qwertz.xml -0 warnings # res/xml/urdu_phonetic_ur.xml Duplicate keys: Layout includes some ASCII punctuation but not all, missing: <, >, ?, `, |, ~ diff --git a/check_layout.py b/check_layout.py index d57d948..97887de 100644 --- a/check_layout.py +++ b/check_layout.py @@ -83,7 +83,7 @@ def check_layout(layout): if root.get("script") == None: warn("Layout doesn't specify a script.") -for fname in sys.argv[1:]: +for fname in sorted(sys.argv[1:]): if fname in KNOWN_NOT_LAYOUT: continue layout = parse_layout(fname)