[V1] tests/ipv4_reassembly: add check for tester port status
Checks
Context |
Check |
Description |
ci/Intel-dts-format-test |
success
|
Testing OK
|
ci/Intel-dts-pylama-test |
success
|
Testing OK
|
ci/Intel-dts-suite-test |
success
|
Testing OK
|
Commit Message
When using the ifconfig command to change the mtu value of the network card,
the state of the network card may change from up to down.
Add the step of checking the status of the network card to ensure that the status of the network card is up.
Signed-off-by: Dukai Yuan <dukaix.yuan@intel.com>
---
tests/TestSuite_ipv4_reassembly.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Fri, 26 May 2023 14:49:02 +0000, Dukai Yuan <dukaix.yuan@intel.com> wrote:
> When using the ifconfig command to change the mtu value of the network card,
> the state of the network card may change from up to down.
> Add the step of checking the status of the network card to ensure that the status of the network card is up.
>
> Signed-off-by: Dukai Yuan <dukaix.yuan@intel.com>
Acked-by: Lijuan Tu <lijuan.tu@intel.com>
Applied, thanks
@@ -86,7 +86,6 @@ class IpReassemblyTestConfig(object):
class TestIpReassembly(TestCase):
-
#
#
#
@@ -599,6 +598,7 @@ class TestIpReassembly(TestCase):
)
try:
self.set_tester_iface_mtu(self.test_config.tester_iface, mtu)
+ self.tester.is_interface_up(self.test_config.tester_iface)
self.set_max_num_of_fragments(4)
self.compile_example_app()
self.execute_example_app()