File tree 2 files changed +10
-7
lines changed
uefi-test-runner/src/proto/network
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 3
3
pub fn test ( ) {
4
4
info ! ( "Testing Network protocols" ) ;
5
5
6
- pxe:: test ( ) ;
7
- snp:: test ( ) ;
6
+ #[ cfg( feature = "pxe" ) ]
7
+ {
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
+ }
8
14
}
9
15
16
+ #[ cfg( feature = "pxe" ) ]
10
17
mod pxe;
18
+ #[ cfg( feature = "pxe" ) ]
11
19
mod snp;
Original file line number Diff line number Diff line change @@ -5,11 +5,6 @@ use uefi::proto::network::IpAddress;
5
5
use uefi:: { boot, CStr8 } ;
6
6
7
7
pub fn test ( ) {
8
- // Skip the test if the `pxe` feature is not enabled.
9
- if cfg ! ( not( feature = "pxe" ) ) {
10
- return ;
11
- }
12
-
13
8
info ! ( "Testing The PXE base code protocol" ) ;
14
9
15
10
let handles = boot:: find_handles :: < BaseCode > ( ) . expect ( "failed to get PXE base code handles" ) ;
You can’t perform that action at this time.
0 commit comments