mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
tests: Update use of devlib cpufreq API
get_domain_cpus has been renamed get_related_cpus
This commit is contained in:
parent
3904096257
commit
fd7ae4b95b
@ -19,7 +19,7 @@ class TestRuntimeParameterUtils(unittest.TestCase):
|
|||||||
return [0, 1, 2]
|
return [0, 1, 2]
|
||||||
def mock_offline_cpus():
|
def mock_offline_cpus():
|
||||||
return [3]
|
return [3]
|
||||||
def mock_domain_cpus(core):
|
def mock_related_cpus(core):
|
||||||
if core in [0, 1]:
|
if core in [0, 1]:
|
||||||
return [0, 1]
|
return [0, 1]
|
||||||
elif core in [2, 3]:
|
elif core in [2, 3]:
|
||||||
@ -29,7 +29,7 @@ class TestRuntimeParameterUtils(unittest.TestCase):
|
|||||||
mock.list_offline_cpus = mock_offline_cpus
|
mock.list_offline_cpus = mock_offline_cpus
|
||||||
mock.core_cpus = mock_core_cpus
|
mock.core_cpus = mock_core_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
|
# Check retrieving cpus from a given prefix
|
||||||
assert_equal(resolve_cpus('A72', mock), [0, 1])
|
assert_equal(resolve_cpus('A72', mock), [0, 1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user