[PATCH] tests/TestSuite_crypto_perf_cryptodev_perf.py Improving lscpu parsing

Patrick Robb probb at iol.unh.edu
Mon Sep 16 06:26:31 CEST 2024


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 at 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



More information about the dts mailing list