tests/acl: fix acl suite impacted by Strip prompt in send_expect
Commit Message
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
> -----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
@@ -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')