Preserve current diagnostics during run cleanup
This commit is contained in:
@@ -149,8 +149,11 @@ func TestCleanupFailurePreservesPublishAndRetriesWithoutRepublishing(t *testing.
|
||||
if !reflect.DeepEqual(summary.Executed, []string{"cleanup"}) || !reflect.DeepEqual(summary.Skipped, []string{"publish", "notify"}) {
|
||||
t.Fatalf("retry summary = %#v", summary)
|
||||
}
|
||||
if _, statErr := os.Lstat(workspaceTarget); !errors.Is(statErr, os.ErrNotExist) {
|
||||
t.Fatalf("workspace target stat error = %v, want absent", statErr)
|
||||
if _, statErr := os.Stat(filepath.Join(workspaceTarget, "publish", "logs")); statErr != nil {
|
||||
t.Fatalf("latest publish diagnostics missing: %v", statErr)
|
||||
}
|
||||
if _, statErr := os.Lstat(filepath.Join(workspaceTarget, "extract")); !errors.Is(statErr, os.ErrNotExist) {
|
||||
t.Fatalf("unprotected extract data remains: %v", statErr)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user