From 8e9cec519edeb48790529ec6753c77523d247f04 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 25 Jan 2026 18:02:15 +0000 Subject: [PATCH] gnu: python-pyzbar: Fix test flags. * gnu/packages/aidc.scm (python-pyzbar)[arguments] : Adjust skipped tests, "-k" option does not support glob pattern use explicit "--deselect" parameter and skip 2 tests. Change-Id: Iad255dd3bb71c98c385c2e03e75435fef3fe7172 --- gnu/packages/aidc.scm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm index ccc63a1620..8fc4185724 100644 --- a/gnu/packages/aidc.scm +++ b/gnu/packages/aidc.scm @@ -74,9 +74,15 @@ (arguments (list #:test-flags - ;; This tests if find_library was called once, but we remove - ;; the call in the stage below to make the library find libzbar. - #~(list "-k" "not test_*_found_non_windows") + ;; This tests if find_library was called once, but we remove the call in + ;; the stage below to make the library find libzbar. + #~(list #$@(map (lambda (test) (string-append "--deselect=" + "pyzbar/tests/" + "test_zbar_library.py::" + "TestLoad::" + test)) + (list "test_found_non_windows" + "test_not_found_non_windows"))) #:phases #~(modify-phases %standard-phases (add-before 'build 'set-library-file-name