tests: net: Fix tests so they can be run in real hw
Both the vlan and checksum_offload tests expect to be run in
controlled environment where the test application is providing
ethernet connectivity. If the board under test has also ethernet
support, then internal checks will fail in the test application.
Because of this, disable on board ethernet so that the tests will
pass.
Fixes #8172
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
diff --git a/tests/net/checksum_offload/prj.conf b/tests/net/checksum_offload/prj.conf
index 3356e2f..aec4318 100644
--- a/tests/net/checksum_offload/prj.conf
+++ b/tests/net/checksum_offload/prj.conf
@@ -33,3 +33,12 @@
CONFIG_NET_DEBUG_NET_PKT=y
CONFIG_SYS_LOG_NET_LEVEL=4
CONFIG_NET_SHELL=n
+
+# Disable internal ethernet drivers as the test is self contained
+# and does not need the on board driver to function.
+CONFIG_ETH_NATIVE_POSIX=n
+CONFIG_ETH_MCUX=n
+CONFIG_ETH_SAM_GMAC=n
+CONFIG_ETH_DW=n
+CONFIG_ETH_ENC28J60=n
+CONFIG_ETH_STM32_HAL=n
diff --git a/tests/net/vlan/prj.conf b/tests/net/vlan/prj.conf
index 12e3256..076eea1 100644
--- a/tests/net/vlan/prj.conf
+++ b/tests/net/vlan/prj.conf
@@ -34,4 +34,12 @@
CONFIG_NET_DEBUG_NET_PKT=y
CONFIG_SYS_LOG_NET_LEVEL=4
CONFIG_NET_SHELL=n
+
+# Disable internal ethernet drivers as the test is self contained
+# and does not need the on board driver to function.
CONFIG_ETH_NATIVE_POSIX=n
+CONFIG_ETH_MCUX=n
+CONFIG_ETH_SAM_GMAC=n
+CONFIG_ETH_DW=n
+CONFIG_ETH_ENC28J60=n
+CONFIG_ETH_STM32_HAL=n