summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-10-07 16:34:54 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2025-10-08 15:15:31 +0900
commite253e35523815a27d41e8160f3eb5a1b772428e4 (patch)
tree2264e5eb387c27b4b375ad08bb3f3c30a8022a5e
parent13897fe2c99d955e82dcf7a084c60c0b53068b70 (diff)
gnu: python-afdko: Skip two failing tests.
* gnu/packages/fontutils.scm (python-afdko) [build-system]: Switch to pyproject-build-system. [#:test-flags]: New argument. [#:phases] {check}: Delete phase. Change-Id: Ib0cc24e9a83933030c8315fb3638856eb47659da
-rw-r--r--gnu/packages/fontutils.scm40
1 files changed, 23 insertions, 17 deletions
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index d4611947b47..9394c802360 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -196,9 +196,31 @@ them as it goes.")
196 (for-each delete-file 196 (for-each delete-file
197 (find-files 197 (find-files
198 "." "Feat(Parser|Lexer).*\\.(h|cpp|interp|tokens)$"))))))) 198 "." "Feat(Parser|Lexer).*\\.(h|cpp|interp|tokens)$")))))))
199 (build-system python-build-system) 199 (build-system pyproject-build-system)
200 (arguments 200 (arguments
201 (list 201 (list
202 #:test-flags
203 #~(list
204 "--dist" "loadfile" "-n"
205 (number->string (parallel-job-count))
206 "-k" (string-join
207 ;; This test fails because of a different date
208 ;; in the copyright header of an expected file
209 ;; since an update to ffmpeg.
210 '("not test_alt_missing_glyph"
211 ;; AssertionError: assert False
212 "test_build_font_and_check_messages"
213 "test_duplicate_warning_messages_bug751"
214 "test_cli_numerics"
215 ;; The test_decimals_ufo and
216 ;; test_type1_supported_hint started failing in
217 ;; 4.0.2, due to small variations compared to the
218 ;; expected output, likely caused by our newer
219 ;; python-fonttools (see:
220 ;; <https://github.com/adobe-type-tools/afdko/issues/1805>).
221 "test_decimals_ufo"
222 "test_type1_supported_hint")
223 " and not "))
202 #:phases 224 #:phases
203 #~(modify-phases %standard-phases 225 #~(modify-phases %standard-phases
204 (add-after 'unpack 'use-c++17 226 (add-after 'unpack 'use-c++17
@@ -253,22 +275,6 @@ them as it goes.")
253 ;; The test suite expects the commands to be Python rather than 275 ;; The test suite expects the commands to be Python rather than
254 ;; shell scripts, so move the wrap phase after the tests. 276 ;; shell scripts, so move the wrap phase after the tests.
255 (delete 'wrap) 277 (delete 'wrap)
256 (replace 'check
257 (lambda* (#:key tests? #:allow-other-keys)
258 (when tests?
259 (setenv "HOME" "/tmp")
260 (invoke "pytest" "-vv" "--dist" "loadfile" "-n"
261 (number->string (parallel-job-count))
262 "-k" (string-join
263 ;; This test fails because of a different date
264 ;; in the copyright header of an expected file
265 ;; since an update to ffmpeg.
266 (list "not test_alt_missing_glyph"
267 ;; AssertionError: assert False
268 "test_build_font_and_check_messages"
269 "test_duplicate_warning_messages_bug751"
270 "test_cli_numerics")
271 " and not ")))))
272 (add-after 'check 'wrap 278 (add-after 'check 'wrap
273 (assoc-ref %standard-phases 'wrap)) 279 (assoc-ref %standard-phases 'wrap))
274 (add-before 'wrap 'wrap-PATH 280 (add-before 'wrap 'wrap-PATH