Clean the complete session run history

This commit is contained in:
2026-11-30 13:56:56 +00:00
parent 5196c67570
commit 03c16df524
8 changed files with 183 additions and 278 deletions

View File

@@ -98,22 +98,6 @@ func TestAttemptViewsRejectConflictingAndUnsafePaths(t *testing.T) {
}
}
func TestManagedAttemptTargetsRejectForeignLinks(t *testing.T) {
root := t.TempDir()
if _, err := BeginAttemptViews(root, "run-one", "polish"); err != nil {
t.Fatal(err)
}
if err := os.Remove(filepath.Join(root, "logs", "polish")); err != nil {
t.Fatal(err)
}
if err := os.Symlink("../../outside", filepath.Join(root, "logs", "polish")); err != nil {
t.Fatal(err)
}
if _, err := ManagedAttemptTargets(root, "run-one", []string{"polish"}); err == nil {
t.Fatal("accepted foreign diagnostic target")
}
}
func TestAttemptViewsRejectUnsafeIdentities(t *testing.T) {
for _, pair := range [][2]string{{"../escape", "polish"}, {"run", "../outside"}, {"run", ""}, {".preflight", "polish"}} {
if _, err := BeginAttemptViews(t.TempDir(), pair[0], pair[1]); err == nil {