system: improve tests of the I struct
All checks were successful
Test / Create distribution (push) Successful in 35s
Test / Sandbox (push) Successful in 2m5s
Test / Hakurei (push) Successful in 3m20s
Test / Hpkg (push) Successful in 3m57s
Test / Sandbox (race detector) (push) Successful in 4m41s
Test / Hakurei (race detector) (push) Successful in 5m25s
Test / Flake checks (push) Successful in 1m39s

This cleans up for the test overhaul of this package.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-09-03 02:16:10 +09:00
parent 6f719bc3c1
commit 024d2ff782
8 changed files with 95 additions and 63 deletions

View File

@@ -36,7 +36,7 @@ func (a *ACLUpdateOp) apply(sys *I) error {
}
func (a *ACLUpdateOp) revert(sys *I, ec *Criteria) error {
if ec.hasType(a) {
if ec.hasType(a.Type()) {
msg.Verbose("stripping ACL", a)
err := acl.Update(a.path, sys.uid)
if errors.Is(err, os.ErrNotExist) {