Skip to content

Commit

Permalink
Merge pull request #4382 from fluxcd/int-test-stop-exit-code
Browse files Browse the repository at this point in the history
tests/int: Set exit code 1 on tf destroy fail
  • Loading branch information
darkowlzz authored Nov 4, 2023
2 parents e7c015d + 6dd0cbf commit 659ce79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ func TestMain(m *testing.M) {
defer func() {
if err := testEnv.Stop(ctx); err != nil {
log.Printf("Failed to stop environment: %v", err)
exitCode = 1
}

// Log the panic error before exit to surface the cause of panic.
Expand Down

0 comments on commit 659ce79

Please sign in to comment.