Merge pull request #17578 from brahmaroutu/fix_unit_tests_gccgo
after the changes to unit test framework, fixing gccgo to run unit tests Upstream-commit: d718388df71b3b56d71564f706ffde7c625dde02 Component: engine
This commit is contained in:
@ -21,7 +21,12 @@ bundle_test_unit() {
|
||||
"${BUILDFLAGS[@]}" $TEST_PATH \
|
||||
| grep -v github.com/docker/docker/vendor \
|
||||
| grep -v github.com/docker/docker/integration-cli)
|
||||
go test -cover $GCCGOFLAGS -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list
|
||||
go test $COVER $GCCGOFLAGS -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list
|
||||
}
|
||||
|
||||
if [[ "$(go version)" =~ "gccgo" ]]; then
|
||||
GCCGOFLAGS=-gccgoflags="-lpthread"
|
||||
else
|
||||
COVER=-cover
|
||||
fi
|
||||
bundle_test_unit 2>&1 | tee -a "$DEST/test.log"
|
||||
|
||||
Reference in New Issue
Block a user