diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2024-06-27 15:03:39 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-06-27 15:19:30 +0100 |
commit | b69fc60d5c6fe0a77cdcf4071566f1b9b8363a6d (patch) | |
tree | e25e9b44249b910fba63830304c14a81f4851647 /meta/conf/distro | |
parent | 998bbbccb660a5ce31fab9d9fc1ed3b9673e09a8 (diff) | |
download | poky-b69fc60d5c6fe0a77cdcf4071566f1b9b8363a6d.tar.gz |
acl: Fix nfs ptest failure
* The date such as "Jun 13" should take 2 columns, so the expected check
item "test/sub2" should the column 9.
# ls test/sub2 -dl
drwxr-xr-x 2 root root 4096 Jun 13 06:01 test/sub2
Corret the check item to fix the below failure in the test/nfsacl.test.
[11] $ find test/sub2 | sort | xargs ls -dl | awk '{print $1,$8}' -- failed
drwxr-xr-x 07:23 != drwxr-xr-x test/sub2
-rw-r--r-- 07:23 != -rw-r--r-- test/sub2/blah
* Use the abosulte path otherwise we won't find the expected file blah.
* The calls to getgrnam_r would always fail because the size of the
buffer was smaller than the minimum (170000) specified in the test
implementations of getgrnam_r and getpwnam_r. Use test_get*_match directly
because getpwnam and getgrnam should never fail on ERANGE.
This commit fixes the following failure in the test/nfs/nfs-dir.test test:
[16] $ su bin -- failed
su: user bin does not exist != ~
* Add attr which provides getfattr to RDEPENDS:${PN}-ptest to fix below
test/nfs/nfsacl failure.
[19] $ getfattr -m- test/sub -- failed\n'
'Can\'t exec "getfattr": Nosuch file or directory at ./test/run line '
369, <TEST_FILE> line 24. != # file: test/sub\n'
'getfattr: No such file or directory != system.posix_acl_access\n'
'~ != system.posix_acl_default\n'
'~
(From OE-Core rev: a76f9524fe7fc135e6f3ae5a7720734891ed3f58)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/distro')
0 files changed, 0 insertions, 0 deletions