[dts] [PATCH] l2fwd: Kill l2fwd at end of test in case of running.
pvukkisala at marvell.com
pvukkisala at marvell.com
Wed Jul 31 08:21:10 CEST 2019
From: Phanendra Vukkisala <pvukkisala at marvell.com>
Avoids failure of next tests, if l2fwd test is failed to kill because of
other exceptions
Signed-off-by: Phanendra Vukkisala <pvukkisala at marvell.com>
---
tests/TestSuite_l2fwd.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_l2fwd.py b/tests/TestSuite_l2fwd.py
index 4908fb7..b064afd 100644
--- a/tests/TestSuite_l2fwd.py
+++ b/tests/TestSuite_l2fwd.py
@@ -241,7 +241,8 @@ class TestL2fwd(TestCase):
"""
Run after each test case.
"""
- pass
+ self.dut.send_expect("fg", "l2fwd|# ", 5)
+ self.dut.send_expect("^C", "# ", 5)
def tear_down_all(self):
"""
--
1.7.9.5
More information about the dts
mailing list