X Tutup
Skip to content

Commit 4df7075

Browse files
committed
Remove integration-parallel target
Always run in parallel. The old target can be emulated with TESTFLAGS_PARALLEL=1 make integration Signed-off-by: Daniel Nephin <dnephin@gmail.com>
1 parent 05ec01e commit 4df7075

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

.appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ test_script:
3131
# - GIT_CHECK_EXCLUDE="./vendor" TRAVIS_COMMIT_RANGE="${TRAVIS_COMMIT_RANGE/.../..}" C:\MinGW\bin\mingw32-make.exe dco
3232
- bash.exe -lc "export PATH=/c/tools/mingw64/bin:/c/gopath/src/github.com/containerd/containerd/bin:$PATH ; mingw32-make.exe coverage root-coverage"
3333
- bash.exe -elc "export PATH=/c/tools/mingw64/bin:/c/gopath/src/github.com/containerd/containerd/bin:$PATH ; mingw32-make.exe integration"
34-
- bash.exe -elc "export PATH=/c/tools/mingw64/bin:/c/gopath/src/github.com/containerd/containerd/bin:$PATH ; mingw32-make.exe integration-parallel"
34+
# Run the integration suite a second time. See discussion in github.com/containerd/containerd/pull/1759
35+
- bash.exe -elc "export PATH=/c/tools/mingw64/bin:/c/gopath/src/github.com/containerd/containerd/bin:$PATH; TESTFLAGS_PARALLEL=1 mingw32-make.exe integration"
3536

3637
on_success:
3738
codecov --flag windows -f coverage.txt

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ script:
6262
- if [ "$GOOS" = "linux" ]; then make coverage ; fi
6363
- if [ "$GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH make root-coverage ; fi
6464
- if [ "$GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH make integration ; fi
65-
- if [ "$GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH make integration-parallel ; fi
65+
# Run the integration suite a second time. See discussion in github.com/containerd/containerd/pull/1759
66+
- if [ "$GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH TESTFLAGS_PARALLEL=1 make integration ; fi
6667

6768
after_success:
6869
- bash <(curl -s https://codecov.io/bash) -F linux

Makefile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ root-test: ## run tests, except integration tests
124124
@go test ${TESTFLAGS} $(filter-out ${INTEGRATION_PACKAGE},${TEST_REQUIRES_ROOT_PACKAGES}) -test.root
125125

126126
integration: ## run integration tests
127-
@echo "$(WHALE) $@"
128-
@go test ${TESTFLAGS} -test.root -parallel 1
129-
130-
integration-parallel: ## run integration tests
131127
@echo "$(WHALE) $@"
132128
@go test ${TESTFLAGS} -test.root -parallel ${TESTFLAGS_PARALLEL}
133129

@@ -195,10 +191,6 @@ root-coverage: ## generate coverage profiles for unit tests that require root
195191
fi; \
196192
done )
197193

198-
coverage-integration: ## generate coverprofiles from the integration tests
199-
@echo "$(WHALE) $@"
200-
go test ${TESTFLAGS} -test.short -coverprofile="../../../${INTEGRATION_PACKAGE}/coverage.txt" -covermode=atomic ${INTEGRATION_PACKAGE} -test.root
201-
202194
vendor:
203195
@echo "$(WHALE) $@"
204196
@vndr

0 commit comments

Comments
 (0)
X Tutup