GNU bug report logs - #26140
Tests for obnam

Previous Next

Package: guix-patches;

Reported by: Arun Isaac <arunisaac <at> systemreboot.net>

Date: Fri, 17 Mar 2017 13:50:01 UTC

Severity: normal

Done: Marius Bakke <mbakke <at> fastmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: ludo <at> gnu.org (Ludovic Courtès)
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 26140 <at> debbugs.gnu.org
Subject: bug#26140: [PATCH 7/7] gnu: obnam: Enable tests.
Date: Fri, 17 Mar 2017 23:56:09 +0100
Hi Arun,

Arun Isaac <arunisaac <at> systemreboot.net> 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’.




This bug report was last modified 8 years and 125 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.