[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/11: tests: Make 'publish' test umask-insensitive.
From: |
guix-commits |
Subject: |
01/11: tests: Make 'publish' test umask-insensitive. |
Date: |
Wed, 31 Mar 2021 10:01:43 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit c536f0b217714917988d2f412999d978c2f2f495
Author: Cees de Groot <cg@evrl.com>
AuthorDate: Tue Mar 30 17:11:48 2021 +0200
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: Ludovic Courtès <ludo@gnu.org>
---
tests/publish.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/publish.scm b/tests/publish.scm
index 5210187..3e67c43 100644
--- a/tests/publish.scm
+++ b/tests/publish.scm
@@ -452,8 +452,8 @@ References: ~%"
(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))
- branch master updated (04ba7a1 -> e45ef9a), guix-commits, 2021/03/31
- 01/11: tests: Make 'publish' test umask-insensitive.,
guix-commits <=
- 02/11: gnu: libvirt: Update to 7.1.0., guix-commits, 2021/03/31
- 05/11: gnu: virt-manager: Update to 3.2.0., guix-commits, 2021/03/31
- 03/11: gnu: python-libvirt: Update to 7.1.0., guix-commits, 2021/03/31
- 04/11: gnu: libvirt-glib: Update to 4.0.0., guix-commits, 2021/03/31
- 06/11: services: xorg: Export %default-xorg-server-arguments., guix-commits, 2021/03/31
- 10/11: substitute: Emit a single newline upon completion., guix-commits, 2021/03/31
- 07/11: services: sysctl: Export <sysctl-configuration> record field accessors., guix-commits, 2021/03/31
- 08/11: gnu: Remove unnecessary imports from (gnu packages gnome)., guix-commits, 2021/03/31
- 09/11: gnu: julia-commonsubexpressions: Fix Texinfo syntax., guix-commits, 2021/03/31
- 11/11: status: Don't display download URLs for '--verbosity=1'., guix-commits, 2021/03/31