test suite reviews and discussions
 help / color / Atom feed
From: "Jiang, YuX" <yux.jiang@intel.com>
To: "dts@dpdk.org" <dts@dpdk.org>
Cc: Jiang <IMCEAINVALID-Jiang@intel.com>, "Jiang, YuX" <yux.jiang@intel.com>
Subject: Re: [dts] [PATCH V1] tests/crypto_perf_cryptodev_perf: optimize parse output
Date: Fri, 31 Jul 2020 05:15:18 +0000
Message-ID: <7e3dde5fbe384a03bcd9731b594d4043@intel.com> (raw)
In-Reply-To: <20200729075436.21401-1-yux.jiang@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1709 bytes --]

Tested-by:  Jiang, YuX <yux.jiang@intel.com>

-----Original Message-----
From: Jiang, YuX 
Sent: Wednesday, July 29, 2020 3:55 PM
To: dts@dpdk.org
Cc: Jiang, YuX <yux.jiang@intel.com>; Jiang
Subject: [dts][PATCH V1] tests/crypto_perf_cryptodev_perf: optimize parse output

From: "Jiang,yu" <yux.jiang@intel.com>

Optimize the output of perf test results log

Signed-off-by: Jiang,yu <yux.jiang@intel.com>
---
 tests/TestSuite_crypto_perf_cryptodev_perf.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_crypto_perf_cryptodev_perf.py b/tests/TestSuite_crypto_perf_cryptodev_perf.py
index e1780f5..fb9f2e0 100644
--- a/tests/TestSuite_crypto_perf_cryptodev_perf.py
+++ b/tests/TestSuite_crypto_perf_cryptodev_perf.py
@@ -268,14 +268,15 @@ class PerfTestsCryptodev(TestCase):
                 if lines[line_index].startswith("    lcore id"):
                     self.logger.debug("data output line from: " + str(line_index))
                     break
+            data_line = line_index - 2
 
             results = []
             pattern = re.compile(r'\s+')
-            for line in lines[line_index:]:
+            for line in lines[data_line:-1]:
                 print(line)
                 result = {}
                 result_list = pattern.split(line.strip(" "))
-                if result_list[0] == "lcore id" or result_list[0] == "lcore" or not result_list[0]:
+                if len(result_list) != 10 or result_list[0] == "lcore" or not result_list[0]:
                     continue
                 result["lcore_id"] = int(result_list[0])
                 result["buf_size"] = int(result_list[1])
-- 
2.7.4


[-- Attachment #2: PerfTestsCryptodev.log --]
[-- Type: application/octet-stream, Size: 683148 bytes --]

      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-29  7:54 Jiang, YuX
2020-07-31  5:15 ` Jiang, YuX [this message]

Reply instructions:

You may reply publically 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=7e3dde5fbe384a03bcd9731b594d4043@intel.com \
    --to=yux.jiang@intel.com \
    --cc=IMCEAINVALID-Jiang@intel.com \
    --cc=dts@dpdk.org \
    /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

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox