Hello,

On 6/19/24 11:17, Yu, Mingli wrote:
From: Mingli Yu<[email protected]>

* 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           != ~

  # ./run-ptest
PASS: test/cp.test
PASS: test/getfacl-lfs.test
PASS: test/getfacl-noacl.test
PASS: test/getfacl-recursive.test
PASS: test/malformed-restore.test
PASS: test/misc.test
PASS: test/sbits-restore.test
PASS: test/setfacl-X.test
PASS: test/utf8-filenames.test
PASS: test/root/getfacl.test
PASS: test/root/permissions.test
PASS: test/root/restore.test
PASS: test/root/setfacl.test
PASS: test/nfs/nfsacl.test
PASS: test/nfs/nfs-dir.test
============================================================================
Testsuite summary for acl 2.3.2
============================================================================
  # TOTAL: 15
  # PASS:  15
  # SKIP:  0
  # XFAIL: 0
  # FAIL:  0
  # XPASS: 0
  # ERROR: 0
============================================================================

Signed-off-by: Mingli Yu<[email protected]>
---

The patch is intended to fix a ptest failure, but could it be causing this nfsacl.test failure?

Please, check the following output:

https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6734/steps/13/logs/stdio

and from the autobuilder logs:

FAIL: test/nfs/nfsacl
=====================

[6] $ umask 022 -- ok
[7] $ mkdir -p test/sub -- ok
[8] $ echo blah > test/sub/blah -- ok
[10] $ cp -rp test/sub test/sub2 -- ok
[11] $ find test/sub2 | sort | xargs ls -dl | awk '{print $1,$9}' -- ok
[15] $ rm -rf test/sub2 -- ok
[17] $ setfacl -m u:daemon:rwx test/sub -- ok
[18] $ setfacl -dm u:daemon:rwx test/sub -- ok
[19] $ getfattr -m- test/sub -- failed
Can't exec "getfattr": No such file or directory at ./test/run line 369, <TEST_FILE> line 24. != # file: test/sub
getfattr: No such file or directory   != system.posix_acl_access
~                                     != system.posix_acl_default
~                                     !=
[25] $ cp -rp test/sub test/sub2 -- ok
[26] $ find test/sub2 | sort | xargs ls -dl | awk '{print $1,$9}' -- ok
[30] $ rm -rf test/sub2 -- ok
[32] $ setfacl -m u:daemon:rw test/sub/blah -- ok
[33] $ cp -rp test/sub test/sub2 -- ok
[34] $ find test/sub2 | sort | xargs ls -dl | awk '{print $1,$9}' -- ok
[38] $ rm -rf test/sub2 -- ok
[42] $ rm -rf test -- ok
17 commands (16 passed, 1 failed)
FAIL test/nfs/nfsacl.test (exit status: 1)

--
Best regards,
João Marcos Costa
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#201005): 
https://lists.openembedded.org/g/openembedded-core/message/201005
Mute This Topic: https://lists.openembedded.org/mt/106757200/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to