Skip to content

Commit

Permalink
Set NO_CLEANUP on vsphere test for debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Squizzato <[email protected]>
  • Loading branch information
squizzi committed Oct 1, 2024
1 parent 35ff86a commit 937b544
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ jobs:
VSPHERE_VM_TEMPLATE: ${{ secrets.CI_VSPHERE_VM_TEMPLATE }}
VSPHERE_NETWORK: ${{ secrets.CI_VSPHERE_NETWORK }}
VSPHERE_SSH_KEY: ${{ secrets.CI_VSPHERE_SSH_KEY }}
NO_CLEANUP: 1
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/provider_vsphere_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var _ = Context("vSphere Templates", Label("provider:onprem", "provider:vsphere"
collectLogArtifacts(kc, clusterName, managedcluster.ProviderVSphere, managedcluster.ProviderCAPI)
}

if deleteFunc != nil {
if deleteFunc != nil && !noCleanup() {
By("deleting the deployment")
err = deleteFunc()
Expect(err).NotTo(HaveOccurred())
Expand Down

0 comments on commit 937b544

Please sign in to comment.