Skip to content

Commit 51fce1f

Browse files
committed
integration-test: add comment for test order constraint of SNP
1 parent 88ee82c commit 51fce1f

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@ pub fn test() {
44
info!("Testing Network protocols");
55

66
http::test();
7-
pxe::test();
8-
snp::test();
7+
#[cfg(feature = "pxe")]
8+
{
9+
pxe::test();
10+
// Currently, we are in the unfortunate situation that the SNP test
11+
// depends on the PXE test, as it assigns an IPv4 address to the
12+
// interface.
13+
snp::test();
14+
}
915
}
1016

1117
mod http;
18+
#[cfg(feature = "pxe")]
1219
mod pxe;
20+
#[cfg(feature = "pxe")]
1321
mod snp;

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ use uefi::proto::network::pxe::{BaseCode, DhcpV4Packet, IpFilter, IpFilters, Udp
55
use uefi::{CStr8, boot};
66

77
pub fn test() {
8-
// Skip the test if the `pxe` feature is not enabled.
9-
if cfg!(not(feature = "pxe")) {
10-
return;
11-
}
12-
138
info!("Testing The PXE base code protocol");
149

1510
let handles = boot::find_handles::<BaseCode>().expect("failed to get PXE base code handles");

0 commit comments

Comments
 (0)