Skip to content

Commit

Permalink
Merge pull request #1169 from jferlan/virsh_domfstrim
Browse files Browse the repository at this point in the history
virsh_domfstrim: Check for existence of lsscsi first
  • Loading branch information
lmr committed Dec 3, 2013
2 parents 0a4602f + 48d058f commit c90c3b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libvirt/tests/src/virsh_cmd/domain/virsh_domfstrim.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ def run_virsh_domfstrim(test, params, env):
raise error.TestNAError("This version of libvirt does not support "
"the domfstrim test")

try:
utils_misc.find_command("lsscsi")
except ValueError:
raise error.TestNAError("Command 'lsscsi' is missing. You must "
"install it.")

vm_name = params.get("main_vm", "virt-tests-vm1")
status_error = ("yes" == params.get("status_error", "no"))
minimum = params.get("domfstrim_minimum")
Expand Down

0 comments on commit c90c3b0

Please sign in to comment.