test suite reviews and discussions
 help / color / mirror / Atom feed
* [PATCH] tests/TestSuite_crypto_perf_cryptodev_perf.py Improving lscpu parsing
@ 2024-09-16  4:26 Patrick Robb
  2024-09-16  7:16 ` David Marchand
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick Robb @ 2024-09-16  4:26 UTC (permalink / raw)
  To: david.marchand; +Cc: dts, Patrick Robb

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


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

end of thread, other threads:[~2024-09-18  7:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-16  4:26 [PATCH] tests/TestSuite_crypto_perf_cryptodev_perf.py Improving lscpu parsing Patrick Robb
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

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