Skip to content

Commit e2a9eed

Browse files
committed
Merge pull request moby#17786 from Microsoft/10662-nativetestunit
Windows: Native make test-unit
2 parents 342e6bb + 7268f76 commit e2a9eed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hack/make/test-unit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ bundle_test_unit() {
2525
go test $COVER $GCCGOFLAGS -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list
2626
}
2727

28-
if [[ "$(go version)" =~ "gccgo" ]]; then
28+
29+
if [[ "$(go version)" == *"gccgo"* ]]; then
2930
GCCGOFLAGS=-gccgoflags="-lpthread"
3031
else
3132
COVER=-cover

0 commit comments

Comments
 (0)