diff mbox series

tests/acl: fix acl suite impacted by Strip prompt in send_expect

Message ID 20210628152015.28156-1-konstantin.ananyev@intel.com (mailing list archive)
State Accepted
Headers show
Series tests/acl: fix acl suite impacted by Strip prompt in send_expect | expand

Commit Message

Ananyev, Konstantin June 28, 2021, 3:20 p.m. UTC
Without that fix TestSuite_acl.py fails to run all tests.

Fixes: f7d4c0c12fc9 ("Strip prompt by default in send_expect")

Suggested-by: Zbigniew Sikora <zbigniewx.sikora@intel.com>
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
---
 tests/TestSuite_acl.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tu, Lijuan July 1, 2021, 8:36 a.m. UTC | #1
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Konstantin Ananyev
> Sent: 2021年6月28日 23:20
> To: dts@dpdk.org
> Cc: Sikora, ZbigniewX <zbigniewx.sikora@intel.com>; Ananyev, Konstantin
> <konstantin.ananyev@intel.com>
> Subject: [dts] [PATCH] tests/acl: fix acl suite impacted by Strip prompt in
> send_expect
> 
> Without that fix TestSuite_acl.py fails to run all tests.
> 
> Fixes: f7d4c0c12fc9 ("Strip prompt by default in send_expect")
> 
> Suggested-by: Zbigniew Sikora <zbigniewx.sikora@intel.com>
> Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

Applied, thanks
diff mbox series

Patch

diff --git a/tests/TestSuite_acl.py b/tests/TestSuite_acl.py
index 5f403085..963f3fb5 100644
--- a/tests/TestSuite_acl.py
+++ b/tests/TestSuite_acl.py
@@ -100,7 +100,7 @@  class TestACL(TestCase):
         # 	grep FAILED test-acl.*.out
         for burst_size in ('15', '16', '17', '18', '23', '24', '25', '31', '32', '33', '34', '35', '47', '48', '51', '255', '256', '257'):
             acl_test_cmd = f'/bin/bash -x {self.test_acl_sh} {self.test_acl_bin} {self.acl_rules_dir} {alg} {burst_size}'
-            out = self.dut.send_expect(acl_test_cmd,  '# ', 1200)
+            out = self.dut.send_expect(acl_test_cmd,  '# ', 1200, trim_whitespace=False)
             self.verify('FAILED' not in out, f'for details see TestACL.log')
         self.logger.info('All tests have ended successfully')