Skip to content

Commit

Permalink
Merge pull request #46178 from vvoland/hack-integrationcli-dont-failf…
Browse files Browse the repository at this point in the history
…ast-23

[23.0 backport] hack/test: Don't fail-fast before integration-cli
  • Loading branch information
thaJeztah committed Aug 9, 2023
2 parents ed8f005 + d8bde85 commit 2f91791
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions hack/make/.integration-test-helpers
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,23 @@ fi

run_test_integration() {
set_platform_timeout
local failed=0
if [ -z "${TEST_SKIP_INTEGRATION}" ]; then
run_test_integration_suites "${integration_api_dirs}"
if ! run_test_integration_suites "${integration_api_dirs}"; then
if [ -n "${TEST_INTEGRATION_FAIL_FAST}" ]; then
return 1
fi
failed=1
fi
fi
if [ -z "${TEST_SKIP_INTEGRATION_CLI}" ]; then
TIMEOUT=360m run_test_integration_suites integration-cli
if ! TIMEOUT=360m run_test_integration_suites integration-cli; then
return 1
fi
fi

if [ $failed -eq 1 ]; then
return 1
fi
}

Expand Down Expand Up @@ -99,13 +111,13 @@ run_test_integration_suites() {
-- go tool test2json -p "${pkgname}" -t ./test.main ${pkgtestflags}
); then
if [ -n "${TEST_INTEGRATION_FAIL_FAST}" ]; then
exit 1
return 1
fi
failed=1
fi
done
if [ $failed -eq 1 ]; then
exit 1
return 1
fi
}

Expand Down

0 comments on commit 2f91791

Please sign in to comment.