Skip to content

Commit 2370ba4

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 73f7677 commit 2370ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xtask/src/qemu.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
499499
"-netdev",
500500
"user,id=net0,net=192.168.17.0/24,tftp=uefi-test-runner/tftp/,bootfile=fake-boot-file",
501501
"-device",
502-
"virtio-net-pci,netdev=net0",
502+
"virtio-net-pci,netdev=net0,mac=52:54:00:00:00:01",
503503
]);
504504
Some(net::EchoService::start())
505505
} else {

0 commit comments

Comments
 (0)