Skip to content

Commit

Permalink
Merge pull request avocado-framework#2390 from sathnaga/missing_util_cpu
Browse files Browse the repository at this point in the history
Fixup: update wrong import and usage of cpu utils
  • Loading branch information
Satheesh Rajendran authored Feb 18, 2020
2 parents 5440730 + f358611 commit ce5203c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions virttest/utils_stress.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from avocado.utils import cpu

from virttest import virsh
from virttest import utils_hotplug
from virttest import cpu as cpuutil
from virttest import utils_net
from virttest.utils_test import libvirt
from virttest.libvirt_xml.devices.disk import Disk
Expand Down Expand Up @@ -111,7 +111,7 @@ def vm_stress_events(self, event, vm, params):
'cur_config': current_vcpu,
'cur_live': max_vcpu,
'guest_live': max_vcpu}
utils_hotplug.check_vcpu_value(
cpuutil.check_vcpu_value(
vm, exp_vcpu, option="--live")
time.sleep(self.event_sleep_time)
result = virsh.setvcpus(vm.name, current_vcpu, "--live",
Expand All @@ -123,7 +123,7 @@ def vm_stress_events(self, event, vm, params):
'cur_config': current_vcpu,
'cur_live': current_vcpu,
'guest_live': current_vcpu}
utils_hotplug.check_vcpu_value(
cpuutil.check_vcpu_value(
vm, exp_vcpu, option="--live")
elif "reboot" in event:
vm.reboot()
Expand Down

0 comments on commit ce5203c

Please sign in to comment.