guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: korganizer: Fix tests.


From: guix-commits
Subject: 02/03: gnu: korganizer: Fix tests.
Date: Wed, 9 Aug 2023 06:23:22 -0400 (EDT)

iyzsong pushed a commit to branch kde-updates
in repository guix.

commit 00efabe6fe5ebf3ca87371151dd53d2932db2333
Author: 宋文武 <iyzsong@member.fsf.org>
AuthorDate: Wed Aug 9 18:14:06 2023 +0800

    gnu: korganizer: Fix tests.
    
    * gnu/packages/kde-pim.scm (korganizer)[native-inputs]: Add 
tzdata-for-tests.
    [arguments]: Remove disable-failing-test phase.  Set TZDIR for tests.
---
 gnu/packages/kde-pim.scm | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/kde-pim.scm b/gnu/packages/kde-pim.scm
index 0651102eb0..d7ab88e256 100644
--- a/gnu/packages/kde-pim.scm
+++ b/gnu/packages/kde-pim.scm
@@ -1715,7 +1715,7 @@ application \"Parts\" to be embedded as a Kontact 
component (or plugin).")
         (base32 "1vp1jsmna059vvfj7xaj9fhhhq0lz9k0pphczkfbwm3gy6nzcavz"))))
     (build-system qt-build-system)
     (native-inputs
-     (list extra-cmake-modules dbus qttools-5 kdoctools))
+     (list extra-cmake-modules dbus qttools-5 kdoctools tzdata-for-tests))
     (inputs
      (list akonadi
            akonadi-calendar
@@ -1767,19 +1767,13 @@ application \"Parts\" to be embedded as a Kontact 
component (or plugin).")
            phonon
            qtbase-5))
     (arguments
-     `(#:phases
+     '(#:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'disable-failing-test
-           (lambda _
-             ;; FIXME: This test started failing after the 20.04 update
-             ;; seemingly due to DBus communication issues.
-             ;; See also 'akonadi-search' for a similar test failure.
-             (substitute* "src/autotests/CMakeLists.txt"
-               ((".*test_advanced\\(koeventpopupmenutest\\.cpp.*")
-                ""))))
          (replace 'check
-           (lambda* (#:key tests? #:allow-other-keys)
+           (lambda* (#:key inputs tests? #:allow-other-keys)
              (when tests?
+               (setenv "TZDIR" (search-input-directory
+                                inputs "share/zoneinfo"))
                (invoke "dbus-launch" "ctest")))))))
     (home-page "https://apps.kde.org/korganizer/";)
     (synopsis "Organizational assistant, providing calendars and other similar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]