Finish cleanup through the normal invocation lifecycle
This commit is contained in:
@@ -95,7 +95,6 @@ func (s *LocalStore) ensureLayout(paths SessionPaths) (SessionPaths, error) {
|
||||
paths.TranscriptsRawDir,
|
||||
paths.ArtifactsDir,
|
||||
paths.LogsDir,
|
||||
paths.RunsDir,
|
||||
paths.PreviousDir,
|
||||
paths.PreviousArtifactsDir,
|
||||
}
|
||||
|
||||
@@ -25,7 +25,9 @@ func TestEnsureLayoutCreatesExpectedDirectories(t *testing.T) {
|
||||
checkDirExists(t, paths.TranscriptsRawDir)
|
||||
checkDirExists(t, paths.ArtifactsDir)
|
||||
checkDirExists(t, paths.LogsDir)
|
||||
checkDirExists(t, paths.RunsDir)
|
||||
if _, err := os.Lstat(paths.RunsDir); !os.IsNotExist(err) {
|
||||
t.Fatalf("layout created runs directory: %v", err)
|
||||
}
|
||||
checkDirExists(t, paths.PreviousDir)
|
||||
checkDirExists(t, paths.PreviousArtifactsDir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user