Skip to content

Add option to disable network tests #528

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

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

nicholasbishop
Copy link
Member

@nicholasbishop nicholasbishop commented Oct 11, 2022

cargo xtask run now takes a --disable-network arg that turns off the network protocol tests by not creating a network device.

The purpose of this flag is to make the QEMU tests faster when iterating on something locally. Disabling the network stuff drops the time down from ~12.5s to ~4.5s. The extra time doesn't matter when running in CI, but for quick local testing it can add up.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits): See the
    Rewriting History guide for
    help.
  • Update the changelog (if necessary)

`cargo xtask run` now takes a `--disable-network` arg that turns off the
network protocol tests by not creating a network device.

The purpose of this flag is to make the QEMU tests faster when iterating
on something locally. Disabling the network stuff drops the time down
from ~12.5s to ~4.5s. The extra time doesn't matter when running in CI,
but for quick local testing it can add up.
@phip1611 phip1611 force-pushed the bishop-optional-net branch from db3cdba to 10de8de Compare October 12, 2022 05:44
@phip1611 phip1611 merged commit 5fbf98f into rust-osdev:main Oct 12, 2022
@nicholasbishop nicholasbishop deleted the bishop-optional-net branch November 18, 2022 03:38
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.

2 participants