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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions xtask/src/opt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ pub struct QemuOpt {
#[clap(long, action)]
pub disable_kvm: bool,

/// Disable network tests.
#[clap(long, action)]
pub disable_network: bool,

/// Disable some tests that don't work in the CI.
#[clap(long, action)]
pub ci: bool,
Expand Down
2 changes: 1 addition & 1 deletion xtask/src/qemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {

// Attach network device with DHCP configured for PXE. Skip this for
// examples since it slows down the boot some.
let echo_service = if opt.example.is_none() {
let echo_service = if !opt.disable_network && opt.example.is_none() {
cmd.args([
"-nic",
"user,model=e1000,net=192.168.17.0/24,tftp=uefi-test-runner/tftp/,bootfile=fake-boot-file",
Expand Down