We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c188263 commit f514d40Copy full SHA for f514d40
1 file changed
src/integration/frameworks_test.go
@@ -30,7 +30,8 @@ func testFrameworks(platform switchblade.Platform, fixtures string) func(*testin
30
t.Logf("❌ FAILED TEST - App/Container: %s", name)
31
t.Logf(" Platform: %s", settings.Platform)
32
}
33
- if name != "" && (!settings.KeepFailedContainers || !t.Failed()) {
+ // Only attempt cleanup if test actually ran (not skipped) and name was set
34
+ if name != "" && !t.Skipped() && (!settings.KeepFailedContainers || !t.Failed()) {
35
Expect(platform.Delete.Execute(name)).To(Succeed())
36
37
})
0 commit comments