From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnH2s-0000NK-Hn for guix-patches@gnu.org; Wed, 08 Aug 2018 01:30:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fnH2o-0004wV-Gd for guix-patches@gnu.org; Wed, 08 Aug 2018 01:30:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39098) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fnH2o-0004wR-DO for guix-patches@gnu.org; Wed, 08 Aug 2018 01:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fnH2o-0003Ng-5o for guix-patches@gnu.org; Wed, 08 Aug 2018 01:30:02 -0400 Subject: [bug#32394] [PATCH] gnu: restic: Fix tests. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnH2D-00086a-QF for guix-patches@gnu.org; Wed, 08 Aug 2018 01:29:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fnH29-00049P-Pw for guix-patches@gnu.org; Wed, 08 Aug 2018 01:29:25 -0400 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:39832) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fnH29-00047b-Iw for guix-patches@gnu.org; Wed, 08 Aug 2018 01:29:21 -0400 Received: by mail-lf1-x133.google.com with SMTP id a134-v6so668305lfe.6 for ; Tue, 07 Aug 2018 22:29:21 -0700 (PDT) From: Oleg Pykhalov Date: Wed, 8 Aug 2018 08:29:06 +0300 Message-Id: <20180808052906.20449-1-go.wigust@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32394@debbugs.gnu.org * gnu/packages/backup.scm (restic)[arguments]: Replace 'check' phase. --- gnu/packages/backup.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm index 0733d9c34..bca070d3f 100644 --- a/gnu/packages/backup.scm +++ b/gnu/packages/backup.scm @@ -850,6 +850,9 @@ is like a time machine for your data. ") (build-system go-build-system) (arguments `(#:import-path "github.com/restic/restic" + #:modules ((srfi srfi-26) + (guix build go-build-system) + (guix build utils)) #:unpack-path "github.com/restic" ;; We don't need to install the source code for end-user applications. #:install-source? #f @@ -862,6 +865,18 @@ is like a time machine for your data. ") ,version) (invoke "go" "run" "build.go")))) + (replace 'check + (lambda _ + (with-directory-excursion (string-append + "src/github.com/restic/restic-" + ,version) + (for-each (cut delete-file <>) + '(;; Requires a network. + "internal/backend/rest/rest_int_test.go" + ;; unexpected error: fusermount: exit status 1 + "cmd/restic/integration_fuse_test.go")) + (invoke "go" "run" "build.go" "--test")))) + (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) -- 2.18.0