[dts] [PATCH] fix test script get the output from the pmd driver correctly if the command inputs aren't from tester side
Liu, Yong
yong.liu at intel.com
Fri Oct 23 07:14:04 CEST 2015
Haifeng,
There's one function get_session_output defined in crb.py can match the
requirement. Please do not call low level APIs directly.
On 10/23/2015 12:59 PM, haifeng wrote:
> Signed-off-by: haifeng <haifengx.tang at intel.com>
> ---
> tests/TestSuite_fdir.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_fdir.py b/tests/TestSuite_fdir.py
> index 1372674..f186eb2 100644
> --- a/tests/TestSuite_fdir.py
> +++ b/tests/TestSuite_fdir.py
> @@ -99,7 +99,8 @@ class TestFdir(TestCase, IxiaPacketGenerator):
> self.dut.send_expect("start", "testpmd>")
> self.tester.scapy_execute()
> time.sleep(.5)
> - out = self.dut.send_expect("stop", "testpmd>")
> + out = self.dut.session.get_session_before()
> + self.dut.send_expect("stop", "testpmd>")
>
> if(self.nic in ["kawela", "niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single"]):
> if ("fwd" == self.fdir_type):
More information about the dts
mailing list