From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#21280: test failures: nar, syscalls, containers Date: Thu, 20 Aug 2015 01:14:03 +0200 Message-ID: <87614a50sk.fsf@gnu.org> References: <1439783007.1743108.357849649.18351DEC@webmail.messagingengine.com> <87si7gfejf.fsf@gnu.org> <1439949357.1343604.359857913.0408A579@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSCZW-0008Un-02 for bug-guix@gnu.org; Wed, 19 Aug 2015 19:15:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSCZS-0007Ae-QL for bug-guix@gnu.org; Wed, 19 Aug 2015 19:15:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:40784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSCZS-0007AU-Np for bug-guix@gnu.org; Wed, 19 Aug 2015 19:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZSCZS-0006jW-CY for bug-guix@gnu.org; Wed, 19 Aug 2015 19:15:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <1439949357.1343604.359857913.0408A579@webmail.messagingengine.com> (Leo Famulari's message of "Tue, 18 Aug 2015 21:55:57 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Leo Famulari Cc: 21280@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Leo Famulari skribis: > On Tue, Aug 18, 2015, at 17:54, Ludovic Court=C3=A8s wrote: >> What is the file system of /home/leo/work/guix (see the output of the >> =E2=80=98mount=E2=80=99 command)? > > $ mount > [...] > /dev/mapper/hostname--vg-home on /home type btrfs (rw,relatime,space_cach= e) > [...] OK. >> and then run =E2=80=9Cmake check TESTS=3Dtests/nar.scm=E2=80=9D from the= top-level build >> directory, and post both the top-level =E2=80=98nar.log=E2=80=99 file and >> =E2=80=98tests/nar.log=E2=80=99? > > The logs are attached. I renamed tests/nar.log to tests-nar.log. Hmm the output of =E2=80=98find=E2=80=99 in tests/nar.log suggests that the= files are indeed identical, so maybe it=E2=80=99s =E2=80=98file-tree-equal?=E2=80=99 = that=E2=80=99s not working as expected. Could you try this patch and send tests/nar.log again? --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/tests/nar.scm b/tests/nar.scm index b8e50c7..37a357b 100644 --- a/tests/nar.scm +++ b/tests/nar.scm @@ -112,7 +112,8 @@ (file-system-fold (const #t) (lambda (name stat result) ; leaf (and result - (file=? name (sibling name)))) + (pk 'file=? name (sibling name) + (file=? name (sibling name))))) (lambda (name stat result) ; down result) (lambda (name stat result) ; up diff --git a/guix/tests.scm b/guix/tests.scm index cd8eda2..efa1a6f 100644 --- a/guix/tests.scm +++ b/guix/tests.scm @@ -101,7 +101,8 @@ (define (file=? a b) "Return true if files A and B have the same type and same content." - (and (eq? (stat:type (lstat a)) (stat:type (lstat b))) + (and (eq? (pk 'stat a (stat:type (lstat a))) + (pk 'stat2 b (stat:type (lstat b)))) (case (stat:type (lstat a)) ((regular) (equal? --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks in advance, Ludo=E2=80=99. --=-=-=--