Limit cleanup checks to owned diagnostic views
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user