github.com/afbjorklund/moby@v20.10.5+incompatible/hack/make/test-integration (about) 1 #!/usr/bin/env bash 2 set -e -o pipefail 3 4 source hack/make/.integration-test-helpers 5 6 if [ ! -z "${TEST_SKIP_INTEGRATION}" ] && [ ! -z "${TEST_SKIP_INTEGRATION_CLI}" ]; then 7 echo integration and integration-cli skipped according to env vars 8 exit 0 9 fi 10 11 ( 12 env 13 build_test_suite_binaries 14 bundle .integration-daemon-start 15 bundle .integration-daemon-setup 16 17 testexit=0 18 (repeat run_test_integration) || testexit=$? 19 20 # Always run cleanup, even if the subshell fails 21 bundle .integration-daemon-stop 22 cleanup_test_suite_binaries 23 error_on_leaked_containerd_shims 24 25 echo exiting test-integration 26 set -x 27 exit ${testexit} 28 29 ) 2>&1 | tee -a "$DEST/test.log"