gnu: kconfig-5: Use #:test-exclude.

* gnu/packages/kde-frameworks.scm (kconfig-5)[arguments]
<#:test-exclude>: Move exclude regex here from 'check phase.
<#:phases>: Move environment setup to 'pre-check and remove 'check
phase.

Change-Id: I923e18b0b1a89aa4ccdedb8f79b2efc5c9bdadf6
This commit is contained in:
Greg Hogan 2024-10-22 18:09:24 +00:00
parent 96a36e949f
commit 26c5f35e8b
No known key found for this signature in database
GPG key ID: EF6EB27413CFEEF3

View file

@ -830,15 +830,15 @@ propagate their changes to their respective configuration files.")
(list qtdeclarative-5))
(propagated-inputs '())
(arguments
(list #:phases
(list #:test-exclude "(kconfigcore-kconfigtest|\
kconfiggui-kstandardshortcutwatchertest)"
#:phases
#~(modify-phases %standard-phases
(replace 'check
(add-before 'check 'pre-check
(lambda* (#:key tests? #:allow-other-keys)
(when tests? ;; kconfigcore-kconfigtest fails inconsistently!!
(setenv "HOME" (getcwd))
(setenv "QT_QPA_PLATFORM" "offscreen")
(invoke "ctest" "-E" "(kconfigcore-kconfigtest|\
kconfiggui-kstandardshortcutwatchertest)")))))))))
(setenv "QT_QPA_PLATFORM" "offscreen")))))))))
(define-public kcoreaddons
(package