2017-05-23 16:32:34 -04:00
|
|
|
#!/usr/bin/env bash
|
2017-08-30 12:01:01 -04:00
|
|
|
set -e -o pipefail
|
2017-05-23 16:32:34 -04:00
|
|
|
|
|
|
|
source hack/make/.integration-test-helpers
|
|
|
|
|
|
|
|
(
|
2017-07-06 17:20:41 -04:00
|
|
|
build_test_suite_binaries
|
2017-05-23 16:32:34 -04:00
|
|
|
bundle .integration-daemon-start
|
|
|
|
bundle .integration-daemon-setup
|
|
|
|
|
2018-12-22 14:18:33 -05:00
|
|
|
testexit=0
|
2017-07-06 17:20:41 -04:00
|
|
|
( repeat run_test_integration ) || testexit=$?
|
2017-05-23 16:32:34 -04:00
|
|
|
|
2017-07-06 17:20:41 -04:00
|
|
|
# Always run cleanup, even if the subshell fails
|
2017-05-23 16:32:34 -04:00
|
|
|
bundle .integration-daemon-stop
|
2017-07-06 17:20:41 -04:00
|
|
|
cleanup_test_suite_binaries
|
|
|
|
error_on_leaked_containerd_shims
|
2017-05-23 16:32:34 -04:00
|
|
|
|
2018-12-22 14:18:33 -05:00
|
|
|
exit ${testexit}
|
2017-05-23 16:32:34 -04:00
|
|
|
|
|
|
|
) 2>&1 | tee -a "$DEST/test.log"
|