Limit cleanup checks to owned diagnostic views

This commit is contained in:
2026-11-30 03:59:19 +00:00
parent b6492ab4e8
commit bc4878f2d7
5 changed files with 28 additions and 17 deletions

View File

@@ -109,7 +109,7 @@ func TestManagedAttemptTargetsRejectForeignLinks(t *testing.T) {
if err := os.Symlink("../../outside", filepath.Join(root, "logs", "polish")); err != nil {
t.Fatal(err)
}
if _, err := ManagedAttemptTargets(root, "run-one"); err == nil {
if _, err := ManagedAttemptTargets(root, "run-one", []string{"polish"}); err == nil {
t.Fatal("accepted foreign diagnostic target")
}
}