system: improve tests of the I struct
All checks were successful
Test / Create distribution (push) Successful in 34s
Test / Sandbox (push) Successful in 2m14s
Test / Hakurei (push) Successful in 3m4s
Test / Hpkg (push) Successful in 3m51s
Test / Sandbox (race detector) (push) Successful in 5m30s
Test / Hakurei (race detector) (push) Successful in 2m41s
Test / Flake checks (push) Successful in 1m29s

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 aab806a6f9
commit a837557505
8 changed files with 95 additions and 63 deletions

View File

@@ -50,7 +50,7 @@ func (m *MkdirOp) revert(_ *I, ec *Criteria) error {
return nil
}
if ec.hasType(m) {
if ec.hasType(m.Type()) {
msg.Verbose("destroying ephemeral directory", m)
return newOpError("mkdir", os.Remove(m.path), true)
} else {