[dts] [PATCH] fix cannot get output bug of timer

xu,huilong huilongx.xu at intel.com
Fri Oct 23 08:38:59 CEST 2015


From: haifeng <haifengx.tang at intel.com>

Signed-off-by: haifeng <haifengx.tang at intel.com>
---
 tests/TestSuite_timer.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_timer.py b/tests/TestSuite_timer.py
index 7b88d56..765770d 100644
--- a/tests/TestSuite_timer.py
+++ b/tests/TestSuite_timer.py
@@ -76,7 +76,8 @@ class TestTimer(TestCase):
 
         self.dut.send_expect(cmdline, "# ", 1)
         time.sleep(15)
-        out = self.dut.send_expect("killall timer", "# ", 5)
+        out = self.dut.get_session_output()
+        self.dut.send_expect("killall timer", "# ", 5)
 
         # verify timer0
         dts.regexp(out, r'timer0_cb\(\) on lcore (\d+)')
-- 
1.9.3



More information about the dts mailing list