[dts] [PATCH v1 3/4] framework pmd_output: add function to retrieve testpmd output

Marvin Liu yong.liu at intel.com
Fri Apr 22 03:32:00 CEST 2016


Signed-off-by: Marvin Liu <yong.liu at intel.com>

diff --git a/framework/pmd_output.py b/framework/pmd_output.py
index df8db12..f8e6088 100644
--- a/framework/pmd_output.py
+++ b/framework/pmd_output.py
@@ -122,6 +122,9 @@ class PmdOutput():
         return self.dut.send_expect('%s' % pmd_cmd, expected, timeout=timeout,
                                     alt_session=alt_session)
 
+    def get_output(self, timeout=1):
+        return self.dut.get_session_output(timeout=timeout)
+
     def get_value_from_string(self, key_str, regx_str, string):
         """
         Get some values from the given string by the regular expression.
-- 
1.9.3



More information about the dts mailing list