generic/079 test fails if 'nobody' and 'daemon' don't exist
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 0 repliesNew
- v22 patches 3 repliesSuperseded
- v12 patches 3 repliesSuperseded
Changes in v3 from the cover letter
- Make the 'grep' command more accurate, i.e. make sure user 'myuser' exists in /etc/passwd and not 'myuser123'. Suggested by Zorro Lang.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | common/rc: add _require_user_exists() to check if a user existscommon/ | +18 | 0 replies | |
| 2/2 | generic/079: make sure users 'nobody' and 'daemon' existtests/ | +2 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Darrick J. Wong |
|---|---|
| 1/2 | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/2] generic/079 test fails if 'nobody' and 'daemon' don't exist
Hi!
Changes since v2:
- Make the 'grep' command more accurate, i.e. make sure user 'myuser' exists in /etc/passwd and not 'myuser123'. Suggested by Zorro Lang.
Changed since v1:
- 'user' variable in _require_user_exists() is now local, as suggested by Eric Biggers.
(I've also added Darrick's Reviewed-by tag to the 2nd patch only.)
Original cover-letter:
Test generic/079 currently fails if for some reason the 'nobody' or 'daemon' users don't exist:
*** starting upadd_acl(/mnt/scratch/079/immutable.f) did not set errno == EPERM add_acl(/mnt/scratch/079/immutable.d) did not set errno == EPERM add_acl(/mnt/scratch/079/append-only.f) did not set errno == EPERM add_acl(/mnt/scratch/079/append-only.d) did not set errno == EPERM testing immutable...FAILED! (2 tests failed)
testing append-only...FAILED! (2 tests failed)
*** cleaning up
The first patch that follows adds a new function _require_user_exists() that will verify a user exists in the system (and refactors existent _require_user() to use the new function).
The second patch is the actual test fix.
Luis Henriques (2):
common/rc: add _require_user_exists() to check if a user exists generic/079: make sure users 'nobody' and 'daemon' exist
common/rc | 27 ++++++++++++++++++--------- tests/generic/079 | 2 ++ 2 files changed, 20 insertions(+), 9 deletions(-)