Skip to content
New issue

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

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

Already on GitHub? # to your account

Makefile: dont't run "test" as part of default "all" make target #308

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

thom311
Copy link
Contributor

@thom311 thom311 commented Aug 1, 2024

The unit tests require CAP_NET_ADMIN permissions, so commonly they fail in a developer environment for valid reasons.

Having the "test" target part of the default make target ("all") will fail in such an environment, which is inconvenient.

Running unit tests should be a separate make target. To run tests, explicitly run make test.

Fixes: f2dbb73 ('Makefile refactor')


Follow-up to #305 (comment)

The unit tests require CAP_NET_ADMIN permissions, so commonly they fail
in a developer environment for valid reasons.

Having the "test" target part of the default make target ("all") will
fail in such an environment, which is inconvenient.

Running unit tests should be a separate make target. To run tests,
explicitly run `make test`.

Fixes: f2dbb73 ('Makefile refactor')
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10196801226

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 41.345%

Totals Coverage Status
Change from base Build 10166243935: 0.0%
Covered Lines: 535
Relevant Lines: 1294

💛 - Coveralls

@thom311
Copy link
Contributor Author

thom311 commented Aug 1, 2024

This applies in a similar way to k8snetworkplumbingwg/sriov-network-device-plugin#579

CC: @adrianchiris

@SchSeba SchSeba merged commit f4a86e0 into k8snetworkplumbingwg:master Aug 12, 2024
10 of 11 checks passed
@thom311 thom311 deleted the th/make-no-test branch August 13, 2024 07:02
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants