gnu: khal: Fix a failing test.
authorTanguy Le Carrour <tanguy@bioneland.org>
Thu, 23 Jul 2020 07:50:43 +0000 (09:50 +0200)
committerEfraim Flashner <efraim@flashner.co.il>
Thu, 23 Jul 2020 08:04:23 +0000 (11:04 +0300)
* gnu/packages/calendar.scm (khal)[arguments]: Fix a failing test.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
gnu/packages/calendar.scm

index 726687d..53c73c9 100644 (file)
@@ -8,6 +8,7 @@
 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com
 ;;; Copyright © 2020 Brendan Tildesley <mail@brendan.scot>
+;;; Copyright © 2020 Tanguy Le Carrour <tanguy@bioneland.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -195,6 +196,12 @@ data units.")
              "doc/build/man/khal.1"
              (string-append (assoc-ref outputs "out") "/share/man/man1"))
             #t))
+        (add-before 'check 'fix-tests
+          (lambda _
+            ;; Reported upstream: <https://github.com/pimutils/khal/issues/947>.
+            (substitute* "tests/cli_test.py"
+             (("Invalid value for \"\\[ICS\\]\"") "Invalid value for \\'[ICS]\\'"))
+            #t))
         (replace 'check
           (lambda* (#:key inputs #:allow-other-keys)
             ;; The tests require us to choose a timezone.