Skip to content

Commit

Permalink
Merge pull request #2309 from xutian/pvpanic
Browse files Browse the repository at this point in the history
use exists function in framework to check pvpanic dev
  • Loading branch information
Xu Tian committed Sep 10, 2015
2 parents cead95d + 849d61a commit a0c9ad3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions virttest/qemu_vm.py
Expand Up @@ -1345,8 +1345,7 @@ def add_disable_modern(devices, dev, dev_type):

# Add pvpanic device
if params.get("enable_pvpanic") == "yes":
cmd = "%s -device pvpanic,help &>/dev/null" % self.qemu_binary
if utils.system(cmd, ignore_status=True, verbose=False) != 0:
if not devices.has_device("pvpanic"):
logging.warn("pvpanic device is not supportted")
else:
pvpanic_params = {"backend": "pvpanic"}
Expand Down

0 comments on commit a0c9ad3

Please sign in to comment.