From 3888270df5e4848e8e137a0cda2ad340049ead80 Mon Sep 17 00:00:00 2001 From: Julia Graham Date: Tue, 29 Oct 2024 17:33:59 -0400 Subject: [PATCH] virsh_nodecpustats: test_disable_enable_cpu() check if cpu online --- libvirt/tests/src/virsh_cmd/host/virsh_nodecpustats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt/tests/src/virsh_cmd/host/virsh_nodecpustats.py b/libvirt/tests/src/virsh_cmd/host/virsh_nodecpustats.py index 4efec85cc1..a035b47133 100755 --- a/libvirt/tests/src/virsh_cmd/host/virsh_nodecpustats.py +++ b/libvirt/tests/src/virsh_cmd/host/virsh_nodecpustats.py @@ -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)