[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:29:12 CEST 2015


Haifeng, please remove your debug code.

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of haifeng
> Sent: Friday, October 23, 2015 1:22 PM
> To: dts at dpdk.org
> Subject: [dts] [PATCH] fix test script get the output from the pmd driver
> correctly if the command inputs aren't from tester side
> 
> 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 f186eb2..8c2f6fd 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.session.get_session_before()
> +        out = self.dut.get_session_output()
> +        print out
>          self.dut.send_expect("stop", "testpmd>")
> 
>          if(self.nic in ["kawela", "niantic", "fortville_eagle",
> "fortville_spirit", "fortville_spirit_single"]):
> --
> 1.9.3



More information about the dts mailing list