mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
hack: have integration-cli use gotestsum codepath
Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit 84928be605
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
4cf69b995e
commit
e1c5cdf14d
1 changed files with 4 additions and 13 deletions
|
@ -47,16 +47,17 @@ integration_api_dirs="${TEST_INTEGRATION_DIR:-$(go list -test -f '{{- if ne .Fo
|
|||
run_test_integration() {
|
||||
set_platform_timeout
|
||||
if [ -z "${TEST_SKIP_INTEGRATION}" ]; then
|
||||
run_test_integration_suites
|
||||
run_test_integration_suites "${integration_api_dirs}"
|
||||
fi
|
||||
if [ -z "${TEST_SKIP_INTEGRATION_CLI}" ]; then
|
||||
run_test_integration_legacy_suites
|
||||
TIMEOUT=360m run_test_integration_suites integration-cli
|
||||
fi
|
||||
}
|
||||
|
||||
run_test_integration_suites() {
|
||||
local flags="-test.v -test.timeout=${TIMEOUT} $TESTFLAGS"
|
||||
for dir in ${integration_api_dirs}; do
|
||||
local dirs="$1"
|
||||
for dir in ${dirs}; do
|
||||
if ! (
|
||||
cd "$dir"
|
||||
# Create a useful package name based on the tests's $dir. We need to take
|
||||
|
@ -84,16 +85,6 @@ run_test_integration_suites() {
|
|||
done
|
||||
}
|
||||
|
||||
run_test_integration_legacy_suites() {
|
||||
(
|
||||
flags="-test.v -test.timeout=360m $TESTFLAGS"
|
||||
cd integration-cli
|
||||
echo "Running $PWD flags=${flags}"
|
||||
# shellcheck disable=SC2086
|
||||
test_env ./test.main $flags
|
||||
)
|
||||
}
|
||||
|
||||
build_test_suite_binaries() {
|
||||
if [ -n "${DOCKER_INTEGRATION_TESTS_VERIFIED}" ]; then
|
||||
echo "Skipping building test binaries; as DOCKER_INTEGRATION_TESTS_VERIFIED is set"
|
||||
|
|
Loading…
Reference in a new issue