[PATCH] [KVM_Autotest] Fix to allow for "=" in the "value" of a config parameter.

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

 



fix modifies kvm_config.split_and_strip so it will only split once per line.

example: kernel_args = "ks=floppy console=ttyS0 noacpi"
---
 client/tests/kvm_runtest_2/kvm_config.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm_runtest_2/kvm_config.py b/client/tests/kvm_runtest_2/kvm_config.py
index 4a1e7b4..29a63b7 100755
--- a/client/tests/kvm_runtest_2/kvm_config.py
+++ b/client/tests/kvm_runtest_2/kvm_config.py
@@ -94,7 +94,7 @@ class config:
 
     def split_and_strip(self, str, sep="="):
         """Split str and strip quotes from the resulting parts."""
-        temp = str.split(sep)
+        temp = str.split(sep,1)
         for i in range(len(temp)):
             temp[i] = temp[i].strip()
             temp[i] = temp[i].strip("\"\'")
-- 
1.6.0.6

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