Skip to content

Commit 7725a45

Browse files
authored
Merge pull request #462 from fluxcd/test-int-stop-exit-code
test/int: Set exit code 1 on tf destroy failure
2 parents 01d75b8 + 2cc930c commit 7725a45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/integration/suite_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ func TestMain(m *testing.M) {
181181
defer func() {
182182
if err := testEnv.Stop(ctx); err != nil {
183183
log.Printf("Failed to stop environment: %v", err)
184+
exitCode = 1
184185
}
185186

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

0 commit comments

Comments
 (0)