Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libvirt/tests/src/virsh_cmd/domain/virsh_reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def get_boot_time():
"""
boot_time = None
try:
boot_time = session.cmd_output("uptime --since")
boot_time = \
session.cmd_output("grep btime /proc/stat | awk '{print $2}'")
except (aexpect.ShellStatusError, aexpect.ShellProcessTerminatedError) as e:
logging.error("Get boot_time error:%s" % e)
return boot_time
Expand Down