[Autotest][PATCH] KVM-test: Add new drive option 'werror'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add new drive option 'werror' of qemu-kvm command for KVM-autotest workframe.
It can be configured by 'drive_werror' variable in configure file.

Signed-off-by: Amos Kong <akong@xxxxxxxxxx>
---
 client/tests/kvm/kvm_vm.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index 7c55ba0..8985f25 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -231,6 +231,8 @@ class VM:
                 qemu_cmd += ",if=%s" % image_params.get("drive_format")
             if image_params.get("drive_cache"):
                 qemu_cmd += ",cache=%s" % image_params.get("drive_cache")
+            if image_params.get("drive_werror"):
+                qemu_cmd += ",werror=%s" % image_params.get("drive_werror")
             if image_params.get("drive_serial"):
                 qemu_cmd += ",serial=%s" % image_params.get("drive_serial")
             if image_params.get("image_snapshot") == "yes":
-- 
1.5.6.5

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux