Skip to content

Commit 115a89f

Browse files
author
YongxueHong
authored
Merge pull request #4078 from YongxueHong/kvmautoma-3494
Amend the conditions for defining hmat-cache
2 parents 978c026 + 9822577 commit 115a89f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

virttest/qemu_devices/qcontainer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3875,9 +3875,7 @@ def numa_hmat_cache_define_by_params(self, nodeid, params):
38753875
if numa_hmat_caches:
38763876
if not self.get_by_properties(
38773877
{"aobject": "%s_hmat_lb_bandwidth" % nodeid}
3878-
) or not self.get_by_properties(
3879-
{"aobject": "%s_hmat_lb_bandwidth" % nodeid}
3880-
):
3878+
) or not self.get_by_properties({"aobject": "%s_hmat_lb_latency" % nodeid}):
38813879
raise exceptions.TestError(
38823880
"Please make sure both hmat-lb bandwidth and "
38833881
"hmat-lb latency are defined when define hmat-cache."

0 commit comments

Comments
 (0)