[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26140: [PATCH 7/7] gnu: obnam: Enable tests.
From: |
Ludovic Courtès |
Subject: |
bug#26140: [PATCH 7/7] gnu: obnam: Enable tests. |
Date: |
Fri, 17 Mar 2017 23:56:09 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hi Arun,
Arun Isaac <address@hidden> skribis:
>> + (replace 'check
>> + (lambda _
>> + (substitute* "obnamlib/vfs_local_tests.py"
>> + ;; Check for the nobody user instead of root
>> + (("self.fs.get_username\\(0\\), 'root'")
>> + "self.fs.get_username(65534), 'nobody'")
>> + ;; Disable tests checking for root group
>> + (("self.fs.get_groupname\\(0\\)") "'root'"))
>> + (substitute* "obnamlib/vfs_local.py"
>> + ;; Don't cover get_groupname function
>> + (("def get_groupname\\(self, gid\\):")
>> + "def get_groupname(self, gid): # pragma: no cover"))
>
> In the build environment, is there a "nogroup" group or some other
> standard group just like there is a "nobody" user? If such a group
> exists, I could check for that group instead of disabling the group
> checking tests altogether.
The manual has details on the available users and groups in the build
environment (info "(guix) Build Environment Setup"):
• ‘/etc/passwd’ with an entry for the current user and an entry for
user ‘nobody’;
• ‘/etc/group’ with an entry for the user’s group;
So you can rely on user “nobody”, but not on “nogroup”.
HTH!
Ludo’.