GNU bug report logs -
#21280
test failures: nar, syscalls, containers
Previous Next
Reported by: Leo Famulari <leo <at> famulari.name>
Date: Mon, 17 Aug 2015 06:27:04 UTC
Severity: normal
Done: ludo <at> gnu.org (Ludovic Courtès)
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Leo Famulari <leo <at> famulari.name> skribis:
> On Tue, Aug 18, 2015, at 17:54, Ludovic Courtès wrote:
>> What is the file system of /home/leo/work/guix (see the output of the
>> ‘mount’ command)?
>
> $ mount
> [...]
> /dev/mapper/hostname--vg-home on /home type btrfs (rw,relatime,space_cache)
> [...]
OK.
>> and then run “make check TESTS=tests/nar.scm” from the top-level build
>> directory, and post both the top-level ‘nar.log’ file and
>> ‘tests/nar.log’?
>
> The logs are attached. I renamed tests/nar.log to tests-nar.log.
Hmm the output of ‘find’ in tests/nar.log suggests that the files are
indeed identical, so maybe it’s ‘file-tree-equal?’ that’s not working as
expected.
Could you try this patch and send tests/nar.log again?
[Message part 2 (text/x-patch, 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?
[Message part 3 (text/plain, inline)]
Thanks in advance,
Ludo’.
This bug report was last modified 9 years and 270 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.