Skip to content
Snippets Groups Projects
Unverified Commit c536f0b2 authored by Cees de Groot's avatar Cees de Groot Committed by Ludovic Courtès
Browse files

tests: Make 'publish' test umask-insensitive.

Fixes <https://bugs.gnu.org/47239

>.
Reported by Konrad Hinsen <konrad.hinsen@fastmail.net>.

* tests/publish.scm ("with cache"): Pass the result of 'stat:perms' to
'logand' to be umask-insensitive.

Signed-off-by: default avatarLudovic Courtès <ludo@gnu.org>
parent 04ba7a19
No related branches found
No related tags found
No related merge requests found
......@@ -452,8 +452,8 @@ (define %gzip-magic-bytes
(wait-for-file cached)
;; Both the narinfo and nar should be world-readable.
(= #o644 (stat:perms (lstat cached)))
(= #o644 (stat:perms (lstat nar)))
(= #o444 (logand #o444 (stat:perms (lstat cached))))
(= #o444 (logand #o444 (stat:perms (lstat nar))))
(let* ((body (http-get-port url))
(compressed (http-get nar-url))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment