commit:     dc90afbaa996d7aeb6bd23fc2ed8f6b65d098774
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 22 22:58:52 2026 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 23:00:56 2026 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=dc90afba

kde-apps/kate-lib: Disable test broken outside of git repository

Closes: https://bugs.gentoo.org/967516
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-apps/kate-lib/kate-lib-25.12.49.9999.ebuild | 17 ++++++++---------
 kde-apps/kate-lib/kate-lib-9999.ebuild          | 17 ++++++++---------
 2 files changed, 16 insertions(+), 18 deletions(-)

diff --git a/kde-apps/kate-lib/kate-lib-25.12.49.9999.ebuild 
b/kde-apps/kate-lib/kate-lib-25.12.49.9999.ebuild
index 54aa513607..59e3db6bb1 100644
--- a/kde-apps/kate-lib/kate-lib-25.12.49.9999.ebuild
+++ b/kde-apps/kate-lib/kate-lib-25.12.49.9999.ebuild
@@ -42,6 +42,14 @@ RDEPEND="${DEPEND}
        >=kde-apps/kate-common-${PV}
 "
 
+CMAKE_SKIP_TESTS=(
+       {session_manager,sessions_action}_test # tests hang
+)
+# bug #967516: weird interaction w/ git: only works from git repo
+[[ ${KDE_BUILD_TYPE} != live ]] && CMAKE_SKIP_TESTS=(
+       kateapp-file_history_tests
+)
+
 src_prepare() {
        ecm_src_prepare
        ecm_punt_po_install
@@ -58,12 +66,3 @@ src_configure() {
 
        ecm_src_configure
 }
-
-src_test() {
-       # tests hang
-       local myctestargs=(
-               -E "(session_manager_test|sessions_action_test)"
-       )
-
-       ecm_src_test
-}

diff --git a/kde-apps/kate-lib/kate-lib-9999.ebuild 
b/kde-apps/kate-lib/kate-lib-9999.ebuild
index 951fe5093e..3112c4f022 100644
--- a/kde-apps/kate-lib/kate-lib-9999.ebuild
+++ b/kde-apps/kate-lib/kate-lib-9999.ebuild
@@ -42,6 +42,14 @@ RDEPEND="${DEPEND}
        >=kde-apps/kate-common-${PV}
 "
 
+CMAKE_SKIP_TESTS=(
+       {session_manager,sessions_action}_test # tests hang
+)
+# bug #967516: weird interaction w/ git: only works from git repo
+[[ ${KDE_BUILD_TYPE} != live ]] && CMAKE_SKIP_TESTS=(
+       kateapp-file_history_tests
+)
+
 src_prepare() {
        ecm_src_prepare
        ecm_punt_po_install
@@ -58,12 +66,3 @@ src_configure() {
 
        ecm_src_configure
 }
-
-src_test() {
-       # tests hang
-       local myctestargs=(
-               -E "(session_manager_test|sessions_action_test)"
-       )
-
-       ecm_src_test
-}

Reply via email to