Skip to content

Commit

Permalink
Merge pull request #5970 from rh-jugraham/virsh_nodecpustats_cpu_online
Browse files Browse the repository at this point in the history
virsh_nodecpustats: test_disable_enable_cpu() check if cpu online
  • Loading branch information
dzhengfy authored Nov 1, 2024
2 parents 0d32ebf + 3888270 commit dde0b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvirt/tests/src/virsh_cmd/host/virsh_nodecpustats.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def test_disable_enable_cpu(test, host_cpus_list, params):
libvirt.check_result(output, expected_fails=[err_msg])

logging.debug("Online host cpu %s" % host_cpus_list[-1])
if cpuutil.online(host_cpus_list[-1]):
if not cpuutil.online(host_cpus_list[-1]):
test.error("Failed to online host cpu %s" % host_cpus_list[-1])
subtest_cpu_percentage_option(test, host_cpus_list[-1], with_cpu_option=False)

Expand Down

0 comments on commit dde0b30

Please sign in to comment.