[V3] tests/perf_test_base: remove duplicate cores

Message ID 20220526020849.3703186-1-yingyax.han@intel.com (mailing list archive)
State Accepted
Headers
Series [V3] tests/perf_test_base: remove duplicate cores |

Checks

Context Check Description
ci/Intel-dts-suite-test warning SKIPPED

Commit Message

Yingya Han May 26, 2022, 2:08 a.m. UTC
Signed-off-by: Yingya Han <yingyax.han@intel.com>
---
 tests/perf_test_base.py | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Tu, Lijuan May 28, 2022, 9:09 a.m. UTC | #1
On Thu, 26 May 2022 10:08:49 +0800, Yingya Han <yingyax.han@intel.com> wrote:
> Signed-off-by: Yingya Han <yingyax.han@intel.com>


Applied, thanks
  

Patch

diff --git a/tests/perf_test_base.py b/tests/perf_test_base.py
index d60572e0..c108a228 100644
--- a/tests/perf_test_base.py
+++ b/tests/perf_test_base.py
@@ -1362,6 +1362,7 @@  class PerfTestBase(object):
                 # ignore first 2 cores
                 _corelist = (corelist * (total // len(corelist) + 1))[:total]
                 [grp[index].append(core) for index, core in enumerate(_corelist)]
+                _corelist = list(set(_corelist))
                 [
                     configs.append(
                         [