From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Lirzin Subject: [PATCH 01/13] tests: Use 'dummy-origin' for lint tests when possible. Date: Sun, 24 Jan 2016 21:19:19 +0100 Message-ID: <1453666771-16869-2-git-send-email-mthl@gnu.org> References: <1453666771-16869-1-git-send-email-mthl@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.7.0.rc3" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNR96-0003a8-VS for guix-devel@gnu.org; Sun, 24 Jan 2016 15:20:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNR94-0005cC-RV for guix-devel@gnu.org; Sun, 24 Jan 2016 15:20:24 -0500 In-Reply-To: <1453666771-16869-1-git-send-email-mthl@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org This is a multi-part message in MIME format. --------------2.7.0.rc3 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: quoted-printable * guix/tests/lint.scm ("patches: file names", "patches: not found"): Use 'dummy-origin'. 'sha256' field was wrongly set to a string instead of a bytevector. --- tests/lint.scm | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) --------------2.7.0.rc3 Content-Type: text/x-patch; name="0001-tests-Use-dummy-origin-for-lint-tests-when-possible.patch" Content-Disposition: inline; filename="0001-tests-Use-dummy-origin-for-lint-tests-when-possible.patch" Content-Transfer-Encoding: quoted-printable diff --git a/tests/lint.scm b/tests/lint.scm index b8dad13..54be50d 100644 --- a/tests/lint.scm +++ b/tests/lint.scm @@ -2,7 +2,7 @@ ;;; Copyright =C2=A9 2012, 2013 Cyril Roelandt ;;; Copyright =C2=A9 2014, 2015 Eric Bavier ;;; Copyright =C2=A9 2014, 2015, 2016 Ludovic Court=C3=A8s -;;; Copyright =C2=A9 2015 Mathieu Lirzin +;;; Copyright =C2=A9 2015, 2016 Mathieu Lirzin ;;; ;;; This file is part of GNU Guix. ;;; @@ -308,10 +308,7 @@ requests." (with-warnings (let ((pkg (dummy-package "x" (source - (origin - (method url-fetch) - (uri "someurl") - (sha256 "somesha") + (dummy-origin (patches (list "/path/to/y.patch"))))))) (check-patch-file-names pkg))) "file names of patches should start with the package name"))) @@ -322,10 +319,7 @@ requests." (with-warnings (let ((pkg (dummy-package "x" (source - (origin - (method url-fetch) - (uri "someurl") - (sha256 "somesha") + (dummy-origin (patches (list (search-patch "this-patch-does-not-exist!"= )))))))) (check-patch-file-names pkg))) --------------2.7.0.rc3--