Skip to content

Commit

Permalink
drivers: ethernet: Disable drivers if tests are enabled
Browse files Browse the repository at this point in the history
The network tests at tests/net use simulated network interfaces
and set CONFIG_NET_TEST to indicate that. If the config option
is set, then we do not want any extra Ethernet driver to
complicate the testing scenario so all external Ethernet
network interfaces should be disabled.

Signed-off-by: Jukka Rissanen <[email protected]>
  • Loading branch information
jukkar authored and nashif committed Feb 26, 2024
1 parent 51ae993 commit bf31b09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/ethernet/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ menuconfig ETH_DRIVER
bool "Ethernet drivers"
default y
depends on NET_L2_ETHERNET
depends on !NET_TEST

if ETH_DRIVER

Expand Down

0 comments on commit bf31b09

Please sign in to comment.