test suite reviews and discussions
 help / color / mirror / Atom feed
From: Konstantin Ananyev <konstantin.ananyev@intel.com>
To: dts@dpdk.org
Cc: zbigniewx.sikora@intel.com,
	Konstantin Ananyev <konstantin.ananyev@intel.com>
Subject: [dts] [PATCH] tests/acl: fix acl suite impacted by Strip prompt in send_expect
Date: Mon, 28 Jun 2021 16:20:15 +0100	[thread overview]
Message-ID: <20210628152015.28156-1-konstantin.ananyev@intel.com> (raw)

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(-)

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


             reply	other threads:[~2021-06-28 15:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-28 15:20 Konstantin Ananyev [this message]
2021-07-01  8:36 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210628152015.28156-1-konstantin.ananyev@intel.com \
    --to=konstantin.ananyev@intel.com \
    --cc=dts@dpdk.org \
    --cc=zbigniewx.sikora@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).