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
Allow to skip go test
#320
Allow to skip go test
#320
Conversation
Skipping CI for Draft Pull Request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is a good if not necessary change for the time being. Our approach to make test
implementation needs serious rethinking. Until then, the current implementation seems fragile with a lot of false failures and very tedious to maintain while not bringing in much benefit (very few if any bugs were pointed out by make test
to my knowledge).
`make test` has been broken since openshift#300 was merged and fixing it is going to take time (see openshift#310 for details). It is a problem for local development since the `test` target is a prequisite for `docker-build` in the makefile. Add a variable to control whether `go test` should run when the `test` target is invoked. $ make test SKIP_TESTS= # Run `go test` when unset $ make test SKIP_TESTS=1 # Don't run `go test` when set Default is unset. Signed-off-by: Greg Kurz <groug@kaod.org>
Forced push with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Premerge tested per PR description. All cases work. Code looks good.
make test
has been broken since #300 was merged and fixing it is going to take time (see #310 for details). It is a problem for local development since thetest
target is a prequisite fordocker-build
in the makefile.Add a variable to control whether
go test
should run when thetest
target is invoked.$ make test SKIP_TESTS= # Run
go test
when unset$ make test SKIP_TESTS=1 # Don't run
go test
when setDefault is unset. [edit]
Fixes https://issues.redhat.com/browse/KATA-2167