Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support extra args for unit-tests #232

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

smira
Copy link
Member

@smira smira commented Mar 10, 2023

This allows to customize go test invocation.

MountCache(filepath.Join(tests.meta.CachePath, "go-build")).
MountCache(filepath.Join(tests.meta.GoPath, "pkg")).
MountCache("/tmp").
Env("CGO_ENABLED", "1")))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why tests run with CGO_ENABLED, just a query?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang/go#27089

Basically race detector requires cgo

@smira smira force-pushed the extra-unit-test-args branch 2 times, most recently from 1c10545 to 7a6d1c4 Compare March 10, 2023 10:44
This allows to customize `go test` invocation.

Signed-off-by: Andrey Smirnov <[email protected]>
@smira smira force-pushed the extra-unit-test-args branch from 7a6d1c4 to 8ea2cfd Compare March 10, 2023 10:47
@smira
Copy link
Member Author

smira commented Mar 10, 2023

/m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants