mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
Merge pull request #4382 from fluxcd/int-test-stop-exit-code
tests/int: Set exit code 1 on tf destroy fail
This commit is contained in:
commit
659ce798c9
1 changed files with 1 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue