test suite reviews and discussions
 help / color / mirror / Atom feed
From: Patrick Robb <probb@iol.unh.edu>
To: david.marchand@redhat.com
Cc: dts@dpdk.org, Patrick Robb <probb@iol.unh.edu>
Subject: [PATCH] tests/TestSuite_crypto_perf_cryptodev_perf.py Improving lscpu parsing
Date: Mon, 16 Sep 2024 00:26:31 -0400	[thread overview]
Message-ID: <20240916042631.186816-1-probb@iol.unh.edu> (raw)

This testsuite fails to parse lscpu output on some systems because
it expects that there be no leading whitespace, which is not
true on all systems.

Signed-off-by: Patrick Robb <probb@iol.unh.edu>
---
 tests/TestSuite_crypto_perf_cryptodev_perf.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/TestSuite_crypto_perf_cryptodev_perf.py b/tests/TestSuite_crypto_perf_cryptodev_perf.py
index 0531b9c677da..a6b611d7956d 100644
--- a/tests/TestSuite_crypto_perf_cryptodev_perf.py
+++ b/tests/TestSuite_crypto_perf_cryptodev_perf.py
@@ -330,6 +330,7 @@ class TestCryptoPerfCryptodevPerf(TestCase):
             elif "Vulnerability" in each_line:
                 continue
             key, value = each_line.split(":")
+            key = key.strip()
             cpu_info[key] = value.strip()
         core, thread = 0, 0
         lcores = self.get_case_cfg()["l"].split(",")
-- 
2.25.1


             reply	other threads:[~2024-09-16  4:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-16  4:26 Patrick Robb [this message]
2024-09-16  7:16 ` David Marchand
2024-09-17  3:36   ` Patrick Robb
2024-09-18  7:01     ` David Marchand
2024-09-18  7:16   ` David Marchand

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=20240916042631.186816-1-probb@iol.unh.edu \
    --to=probb@iol.unh.edu \
    --cc=david.marchand@redhat.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
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).