Skip to content

Commit ff20426

Browse files
committed
xtask: explicitly set a MAC address
This helps to identify the network interface in integration tests. So far, we also only use a single network device. In case there are more, the next device should have a similar MAC address, such as the last component being incremented by one.
1 parent 86b339b commit ff20426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: xtask/src/qemu.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
531531
"-netdev",
532532
"user,id=net0,net=192.168.17.0/24,tftp=uefi-test-runner/tftp/,bootfile=fake-boot-file",
533533
"-device",
534-
"virtio-net-pci,netdev=net0",
534+
"virtio-net-pci,netdev=net0,mac=52:54:00:00:00:01",
535535
]);
536536
Some(net::EchoService::start())
537537
} else {

0 commit comments

Comments
 (0)