Skip to content

Commit f514d40

Browse files
committed
[integration-test] skip deleting if test is skipped
1 parent c188263 commit f514d40

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/integration/frameworks_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ func testFrameworks(platform switchblade.Platform, fixtures string) func(*testin
3030
t.Logf("❌ FAILED TEST - App/Container: %s", name)
3131
t.Logf(" Platform: %s", settings.Platform)
3232
}
33-
if name != "" && (!settings.KeepFailedContainers || !t.Failed()) {
33+
// Only attempt cleanup if test actually ran (not skipped) and name was set
34+
if name != "" && !t.Skipped() && (!settings.KeepFailedContainers || !t.Failed()) {
3435
Expect(platform.Delete.Execute(name)).To(Succeed())
3536
}
3637
})

0 commit comments

Comments
 (0)