Skip to content

Commit

Permalink
Change guest cpu dies checking methods
Browse files Browse the repository at this point in the history
Signed-off-by: liang-cong-red-hat <[email protected]>
  • Loading branch information
liang-cong-red-hat committed Jun 26, 2024
1 parent 4be9bbc commit 8c07a5a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ def verify_vm_cpu_info(vm_session, test_obj, cpu_info_type, cmd):
if cpu_info_type == 'cores':
dies = eval(test_obj.params.get('cpu_topology'))['dies']
cpu_info = str(int(cpu_info) * int(dies))
if cpu_info_type == 'dies':
sockets = eval(test_obj.params.get('cpu_topology'))['sockets']
cpu_info = str(int(cpu_info) * int(sockets))
if cpu_info != output.strip():
test_obj.test.fail('Guest cpu %s is expected '
'to be %s, but found %s' % (cpu_info_type,
Expand Down

0 comments on commit 8c07a5a

Please sign in to comment.