Skip to contentSkip to conversation

KVM-test: Add new drive option 'werror'

PATCH Applied Amos Kong 2 participants 2 messages Jan 19, 2010 KVM

lore
Share & tools
lore

Amos Kong

author
#0 lore raw

PATCH 1/1 KVM-test: Add new drive option 'werror'

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

---
 client/tests/kvm/kvm_vm.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
client/tests/kvm/kvm_vm.py +2 -0
index 7c55ba0..8985f25 100755
@@ -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":
Signature · 1 line
1.5.6.5
#1 lore raw
Quoted 3 lines · Amos Kong

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

Applied, thanks!

Quoted 26 lines

---
 client/tests/kvm/kvm_vm.py |    2 ++

 1 files changed, 2 insertions(+), 0 deletions(-)
client/tests/kvm/kvm_vm.py +0 -0
index 7c55ba0..8985f25 100755
@@ -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

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Signature · 1 line
Lucas