mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-23 21:17:11 -05:00
tests: Add a debug output to "fold-available-packages with/without cache".
This should help to debug test failures due to duplicated packages. * tests/packages ("fold-available-packages with/without cache"): Print duplicated packages.
This commit is contained in:
parent
2f2dbde921
commit
afc3cd84d1
1 changed files with 9 additions and 0 deletions
|
@ -1326,6 +1326,15 @@ (define from-cache
|
|||
result))
|
||||
'()))))))
|
||||
|
||||
(define (find-duplicates l)
|
||||
(match l
|
||||
(() '())
|
||||
((head . tail)
|
||||
(if (member head tail)
|
||||
(cons head (find-duplicates tail))
|
||||
(find-duplicates tail)))))
|
||||
|
||||
(pk (find-duplicates from-cache))
|
||||
(and (equal? (delete-duplicates from-cache) from-cache)
|
||||
(lset= equal? no-cache from-cache))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue