test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/crypto_perf_cryptodev_perf: optimize parse output
@ 2020-07-29  7:54 Jiang, YuX
  2020-07-31  5:15 ` Jiang, YuX
  2020-08-12  6:59 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Jiang, YuX @ 2020-07-29  7:54 UTC (permalink / raw)
  To: dts; +Cc: Jiang,yu, Jiang

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-12  6:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-29  7:54 [dts] [PATCH V1] tests/crypto_perf_cryptodev_perf: optimize parse output Jiang, YuX
2020-07-31  5:15 ` Jiang, YuX
2020-08-12  6:59 ` Tu, Lijuan

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