[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/5] tests: Silence %have-nix-hash?.
From: |
Mathieu Lirzin |
Subject: |
[PATCH 4/5] tests: Silence %have-nix-hash?. |
Date: |
Thu, 24 Mar 2016 00:38:49 +0100 |
* tests/base32.scm (%have-nix-hash?): Use 'which' instead of 'system' to
avoid polluting standard output.
---
tests/base32.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/base32.scm b/tests/base32.scm
index 194f8da..7f59e76 100644
--- a/tests/base32.scm
+++ b/tests/base32.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2015 Ludovic Courtès <address@hidden>
+;;; Copyright © 2016 Mathieu Lirzin <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -19,6 +20,7 @@
(define-module (test-base32)
#:use-module (guix hash)
#:use-module (guix base32)
+ #:use-module (guix build utils)
#:use-module (guix utils)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-34)
@@ -39,9 +41,7 @@
"nix-hash"))
(define %have-nix-hash?
- ;; Note: Use `system', not `system*', because of <http://bugs.gnu.org/13166>.
- (false-if-exception
- (zero? (system (string-append %nix-hash " --version")))))
+ (which %nix-hash))
(test-begin "base32")
--
2.7.0
- [PATCH 0/5] Automake custom test driver using SRFI-64., Mathieu Lirzin, 2016/03/23
- [PATCH 3/5] tests: Silence guix-daemon., Mathieu Lirzin, 2016/03/23
- [PATCH 4/5] tests: Silence %have-nix-hash?.,
Mathieu Lirzin <=
- [PATCH 5/5] tests: Silence tar., Mathieu Lirzin, 2016/03/23
- [PATCH 1/5] tests: Silence %cpio-program., Mathieu Lirzin, 2016/03/23
- [PATCH 2/5] build: Add a Guile custom test driver using SRFI-64., Mathieu Lirzin, 2016/03/23
- Re: [PATCH 0/5] Automake custom test driver using SRFI-64., Eric Bavier, 2016/03/24
- Re: [PATCH 0/5] Automake custom test driver using SRFI-64., Ludovic Courtès, 2016/03/27