[dts] [PATCH] tests/acl: fix acl suite impacted by Strip prompt in send_expect
Konstantin Ananyev
konstantin.ananyev at intel.com
Mon Jun 28 17:20:15 CEST 2021
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 at intel.com>
Signed-off-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
---
tests/TestSuite_acl.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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')
--
2.26.3
More information about the dts
mailing list