Skip to content

Commit

Permalink
KVM: fix one package installation issue on tsc case
Browse files Browse the repository at this point in the history
Signed-off-by: Xudong Hao <[email protected]>
  • Loading branch information
xhao22 committed Aug 29, 2024
1 parent d9fe5e2 commit db6cfbe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions KVM/qemu/tests/tsc_freq.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ def get_tsc_freq(params, test, session=None):
if session:
# Set up guest environment
if session.cmd_status("rpm -qa|grep %s" % cpuid_pkg):
try:
session.cmd_status("yum -y install %s" % cpuid_pkg)
except Exception:
if session.cmd_status("yum -y install %s" % cpuid_pkg):
test.cancel("Fail to install package cpuid, please retest"
"this case again.")
else:
Expand Down

0 comments on commit db6cfbe

Please sign in to comment.