Skip to content

Commit 005802d

Browse files
committed
uefi-test-runner: SNP: PXE feature gate
1 parent 0a90b89 commit 005802d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

uefi-test-runner/src/proto/network/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ pub fn test() {
55

66
http::test();
77
pxe::test();
8+
// Currently, we are in the unfortunate situation that the SNP test
9+
// depends on the PXE test, as it assigns an IPv4 address to the
10+
// interface via DHCP.
811
snp::test();
912
}
1013

uefi-test-runner/src/proto/network/snp.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ use uefi::proto::network::snp::{InterruptStatus, ReceiveFlags, SimpleNetwork};
77
use uefi::{Status, boot};
88

99
pub fn test() {
10+
// This test currently depends on the PXE test running first.
11+
if cfg!(not(feature = "pxe")) {
12+
return;
13+
}
14+
1015
info!("Testing the simple network protocol");
1116

1217
let handles = boot::find_handles::<SimpleNetwork>().unwrap_or_default();

0 commit comments

Comments
 (0)