From fd7ae4b95bf5552b9a4f4a8336312a3f10236fe4 Mon Sep 17 00:00:00 2001 From: Brendan Jackman Date: Wed, 6 Dec 2017 15:11:32 +0000 Subject: [PATCH] tests: Update use of devlib cpufreq API get_domain_cpus has been renamed get_related_cpus --- tests/test_runtime_param_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_runtime_param_utils.py b/tests/test_runtime_param_utils.py index fdad64d2..5fca2f5b 100644 --- a/tests/test_runtime_param_utils.py +++ b/tests/test_runtime_param_utils.py @@ -19,7 +19,7 @@ class TestRuntimeParameterUtils(unittest.TestCase): return [0, 1, 2] def mock_offline_cpus(): return [3] - def mock_domain_cpus(core): + def mock_related_cpus(core): if core in [0, 1]: return [0, 1] elif core in [2, 3]: @@ -29,7 +29,7 @@ class TestRuntimeParameterUtils(unittest.TestCase): mock.list_offline_cpus = mock_offline_cpus mock.core_cpus = mock_core_cpus mock.core_cpus = mock_core_cpus - mock.cpufreq.get_domain_cpus = mock_domain_cpus + mock.cpufreq.get_related_cpus = mock_related_cpus # Check retrieving cpus from a given prefix assert_equal(resolve_cpus('A72', mock), [0, 1])