Skip to content

Commit 659ce79

Browse files
authored
Merge pull request #4382 from fluxcd/int-test-stop-exit-code
tests/int: Set exit code 1 on tf destroy fail
2 parents e7c015d + 6dd0cbf commit 659ce79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/integration/suite_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ func TestMain(m *testing.M) {
220220
defer func() {
221221
if err := testEnv.Stop(ctx); err != nil {
222222
log.Printf("Failed to stop environment: %v", err)
223+
exitCode = 1
223224
}
224225

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

0 commit comments

Comments
 (0)