Skip to content

Commit

Permalink
tools/bumper: Remove temporary test directory
Browse files Browse the repository at this point in the history
The tests creates a temporary test directory on every run.
Removing it to prevent leftover folders.

Signed-off-by: Ram Lavi <[email protected]>
  • Loading branch information
RamLavi committed Jan 14, 2025
1 parent 5995dfb commit 81abf78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/bumper/cnao_repo_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ var _ = Describe("Testing internal git CNAO Repo", func() {

DeferCleanup(func() {
Expect(os.RemoveAll(gitCnaoRepo.gitRepo.localDir)).To(Succeed())
Expect(os.RemoveAll(tempDir)).To(Succeed())
})
})

Expand Down
1 change: 1 addition & 0 deletions tools/bumper/component_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var _ = Describe("Testing internal git component", func() {

DeferCleanup(func() {
Expect(os.RemoveAll(gitComponent.gitRepo.localDir)).To(Succeed())
Expect(os.RemoveAll(tempDir)).To(Succeed())
})
})

Expand Down

0 comments on commit 81abf78

Please sign in to comment.