github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/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 exit ${testexit} 26 27 ) 2>&1 | tee -a "$DEST/test.log"