From 948e888d3a35d88fe7a972a21f47f60ec5e4279b Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 4 Jul 2018 18:11:30 +0530 Subject: [PATCH] gnu: ledger: Skip failing test. * gnu/packages/finance.scm (ledger)[arguments]: Set #:make-flags to skip failing test BaselineTest_cmd-org. Replace check phase with the check phase from gnu-build-system. --- gnu/packages/finance.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index e69b3cabc4..3eab2fa14d 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2018 Eric Bavier ;;; Copyright © 2018 Adriano Peluso ;;; Copyright © 2018 Nicolas Goaziou +;;; Copyright © 2018 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -142,6 +143,7 @@ (define-public ledger (build-system cmake-build-system) (arguments `(#:modules ((guix build cmake-build-system) + ((guix build gnu-build-system) #:prefix gnu:) (guix build utils) (guix build emacs-utils)) #:imported-modules (,@%cmake-build-system-modules @@ -155,6 +157,10 @@ (define-public ledger ,(string-append "-DUTFCPP_INCLUDE_DIR:PATH=" (assoc-ref %build-inputs "utfcpp") "/include")) + ;; Skip failing test BaselineTest_cmd-org during the check phase. + ;; This is a known upstream issue. See + ;; https://github.com/ledger/ledger/issues/550 + #:make-flags (list "ARGS=-E BaselineTest_cmd-org") #:phases (modify-phases %standard-phases (add-before 'configure 'install-examples @@ -173,6 +179,7 @@ (define-public ledger (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo")) #t)) + (replace 'check (assoc-ref gnu:%standard-phases 'check)) (add-after 'install 'relocate-elisp (lambda* (#:key outputs #:allow-other-keys) (let* ((site-dir (string-append (assoc-ref outputs "out")