mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Fix up filtering to make deterministic.
Needed when changed chacl to give better error msg.
This commit is contained in:
@@ -186,7 +186,7 @@ echo "=== Test Extended ACLs ==="
|
|||||||
echo ""
|
echo ""
|
||||||
echo "--- Test adding a USER ACE ---"
|
echo "--- Test adding a USER ACE ---"
|
||||||
echo "Expect to FAIL as no MASK provided"
|
echo "Expect to FAIL as no MASK provided"
|
||||||
chacl u::---,g::---,o::---,u:$acl2:r-x file1 2>&1
|
chacl u::---,g::---,o::---,u:$acl2:r-x file1 2>&1 | _acl_filter_id
|
||||||
echo "Ensure that ACL has not been changed"
|
echo "Ensure that ACL has not been changed"
|
||||||
chacl -l file1 | _acl_filter_id
|
chacl -l file1 | _acl_filter_id
|
||||||
echo "Expect to PASS - USER ACE matches user"
|
echo "Expect to PASS - USER ACE matches user"
|
||||||
@@ -199,7 +199,7 @@ $runas -u $acl3 -g $acl3 ./file1 2>&1
|
|||||||
echo ""
|
echo ""
|
||||||
echo "--- Test adding a GROUP ACE ---"
|
echo "--- Test adding a GROUP ACE ---"
|
||||||
echo "Expect to FAIL as no MASK provided"
|
echo "Expect to FAIL as no MASK provided"
|
||||||
chacl u::---,g::---,o::---,g:$acl2:r-x file1 2>&1
|
chacl u::---,g::---,o::---,g:$acl2:r-x file1 2>&1 | _acl_filter_id
|
||||||
echo "Ensure that ACL has not been changed"
|
echo "Ensure that ACL has not been changed"
|
||||||
chacl -l file1 | _acl_filter_id
|
chacl -l file1 | _acl_filter_id
|
||||||
chacl u::---,g::---,o::---,g:$acl2:r-x,m::rwx file1 2>&1
|
chacl u::---,g::---,o::---,g:$acl2:r-x,m::rwx file1 2>&1
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ Test was executed
|
|||||||
|
|
||||||
--- Test adding a USER ACE ---
|
--- Test adding a USER ACE ---
|
||||||
Expect to FAIL as no MASK provided
|
Expect to FAIL as no MASK provided
|
||||||
chacl: "u::---,g::---,o::---,u:17:r-x" is an invalid ACL specification.
|
chacl: "u::---,g::---,o::---,u:id2:r-x" is an invalid ACL specification.
|
||||||
Ensure that ACL has not been changed
|
Ensure that ACL has not been changed
|
||||||
file1 [u::---,g::---,o::r-x]
|
file1 [u::---,g::---,o::r-x]
|
||||||
Expect to PASS - USER ACE matches user
|
Expect to PASS - USER ACE matches user
|
||||||
@@ -60,7 +60,7 @@ Expect to FAIL - USER ACE does not match user
|
|||||||
|
|
||||||
--- Test adding a GROUP ACE ---
|
--- Test adding a GROUP ACE ---
|
||||||
Expect to FAIL as no MASK provided
|
Expect to FAIL as no MASK provided
|
||||||
chacl: "u::---,g::---,o::---,g:17:r-x" is an invalid ACL specification.
|
chacl: "u::---,g::---,o::---,g:id2:r-x" is an invalid ACL specification.
|
||||||
Ensure that ACL has not been changed
|
Ensure that ACL has not been changed
|
||||||
file1 [u::---,g::---,o::---,u:id2:r-x,m::rwx]
|
file1 [u::---,g::---,o::---,u:id2:r-x,m::rwx]
|
||||||
file1 [u::---,g::---,o::---,g:id2:r-x,m::rwx]
|
file1 [u::---,g::---,o::---,g:id2:r-x,m::rwx]
|
||||||
|
|||||||
Reference in New Issue
Block a user