Clean the complete session run history
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user