[dts] [PATCH] fix cannot get output bug of ieee1588
xu,huilong
huilongx.xu at intel.com
Fri Oct 23 08:39:00 CEST 2015
From: haifeng <haifengx.tang at intel.com>
Signed-off-by: haifeng <haifengx.tang at intel.com>
---
tests/TestSuite_ieee1588.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_ieee1588.py b/tests/TestSuite_ieee1588.py
index e23f8fb..723ca40 100644
--- a/tests/TestSuite_ieee1588.py
+++ b/tests/TestSuite_ieee1588.py
@@ -99,7 +99,8 @@ class TestIeee1588(TestCase):
# self.verify("\\x00\\x02" in out, "Payload wrong in PTP")
time.sleep(1)
- out = self.dut.send_expect("stop", "testpmd> ")
+ out = self.dut.get_session_output()
+ self.dut.send_expect("stop", "testpmd> ")
text = dts.regexp(out, "(.*) by hardware")
self.verify("IEEE1588 PTP V2 SYNC" in text, "Not filtered " + text)
--
1.9.3
More information about the dts
mailing list