We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5ccf27 commit f02fb04Copy full SHA for f02fb04
uefi-test-runner/src/proto/network/mod.rs
@@ -3,8 +3,14 @@
3
pub fn test() {
4
info!("Testing Network protocols");
5
6
- pxe::test();
7
- snp::test();
+ #[cfg(feature = "pxe")]
+ {
8
+ pxe::test();
9
+ // Currently, we are in the unfortunate situation that the SNP test
10
+ // depends on the PXE test, as it assigns an IPv4 address to the
11
+ // interface.
12
+ snp::test();
13
+ }
14
}
15
16
mod pxe;
uefi-test-runner/src/proto/network/pxe.rs
@@ -5,11 +5,6 @@ use uefi::proto::network::IpAddress;
use uefi::{boot, CStr8};
- // Skip the test if the `pxe` feature is not enabled.
- if cfg!(not(feature = "pxe")) {
- return;
- }
-
info!("Testing The PXE base code protocol");
let handles = boot::find_handles::<BaseCode>().expect("failed to get PXE base code handles");
0 commit comments