diff mbox

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

Message ID 20100119141804.GA5173@debian (mailing list archive)
State New, archived
Headers show

Commit Message

Amos Kong Jan. 19, 2010, 2:18 p.m. UTC
None
diff mbox

Patch

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":