mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
477fe4846a
`TEST_REPEAT=n` runs the test suite again n times or until the first failure without doing building and daemon setup. Useful for debugging flaky tests. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
18 lines
400 B
Bash
Executable file
18 lines
400 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
bundle_test_integration_cli() {
|
|
TESTFLAGS="$TESTFLAGS -check.v -check.timeout=${TIMEOUT} -test.timeout=360m"
|
|
go_test_dir ./integration-cli
|
|
}
|
|
|
|
# subshell so that we can export PATH without breaking other things
|
|
(
|
|
bundle .integration-daemon-start
|
|
|
|
bundle .integration-daemon-setup
|
|
|
|
bundle_test_integration_cli
|
|
|
|
bundle .integration-daemon-stop
|
|
) 2>&1 | tee -a "$DEST/test.log"
|