Skip to content

Commit

Permalink
Merge pull request avocado-framework#3805 from mxie91/check-cpu-statu…
Browse files Browse the repository at this point in the history
…s-for-windows-guest

Get cpu status from windows guest
  • Loading branch information
chloerh authored Dec 4, 2023
2 parents 92b558f + 2852fef commit 71382b8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions virttest/utils_v2v.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,16 @@ def get_driver_info(self, signed=True):
LOG.debug("Command output:\n%s", output)
return output

def get_cpu_status(self):
"""
Get windows cpu status.
"""
cmd = "wmic cpu get status"
output = self.session.cmd_output(cmd)
if not output:
LOG.error('Fail to get cpu status')
return output

def get_windows_event_info(self):
"""
Get windows event log info about WSH.
Expand Down

0 comments on commit 71382b8

Please sign in to comment.