Yu Watanabe
2cfa513356
test: missing -v option for command
...
Otherwise the specified command is invoked, not only checking the
existence of the command.
2025-07-22 01:08:43 +01:00
Yu Watanabe
bdfb884237
TEST-17-UDEV: conditionalize test cases for testuser
...
Then, we can also run the test script in our local machine.
2025-07-11 10:42:08 +09:00
Yu Watanabe
a4a6e21673
udevadm: do not read udev rules files outside of the specified root directory
...
With this change, an invalid symlink and an empty file is silently
ignored. Hence, the test code is slightly updated.
2025-07-11 10:42:08 +09:00
Yu Watanabe
bb60dd27a6
TEST-17-UDEV: check the exit code at last
...
Otherwise, it is hard to debug when the test failed.
2025-06-30 05:35:13 +09:00
Yu Watanabe
b351ebdc97
Revert "tree-wide: use CONF_FILES_CHASE_BASENAME where root directory is specified"
...
This reverts commit 6b606f3586 .
The commit was mistakenly merged without review, and has several issues.
Let's revert at least now.
2025-06-29 10:15:56 +09:00
Yu Watanabe
6b606f3586
tree-wide: use CONF_FILES_CHASE_BASENAME where root directory is specified
...
Otherwise, the result may point to outside of the root directory.
This also sets CONF_FILES_REGULAR and CONF_FILES_FILTER_MASKED, as the
callers will call fopen() or friends for the result, thus the enumerated
results must be non-empty regular files.
2025-06-28 04:13:43 +09:00
Yu Watanabe
d2b41bd69e
TEST-17-UDEV: acquire SYS_UID_MAX/SYS_GID_MAX from userdbctl
...
Suse build systemd with -Dsystem-uid-max=499 -Dsystem-gid-max=499,
and seems to not provide /etc/login.defs file. See
https://github.com/bmwiedemann/openSUSE/blob/2dc224ae5d446e928519315f4d46f76d1e34b8a8/packages/s/systemd/systemd.spec
2025-06-04 21:54:32 +09:00
Yu Watanabe
0c93e66386
udev: use userdb_by_name()/groupdb_by_name()
...
Prompted by https://github.com/systemd/systemd/pull/37294#discussion_r2068141968 .
2025-05-09 12:10:28 +09:00
Yu Watanabe
da9d75e0c6
TEST-17: drop unnecessary $PATH setting
...
My local setting was unintentionally inserted by the commit
7cb4508c5a .
2025-05-01 00:27:51 +09:00
Yu Watanabe
40959dcc02
TEST-17-UDEV: rename subtests
2025-04-05 17:33:31 +09:00