Skip to contentSkip to conversation

Add 'downscript=no' into kvm command line

PATCH Applied Yolkfull Chow 2 participants 2 messages Oct 21, 2009 – Oct 23, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add 'downscript=no' into kvm command line

If no downscript is assigned, add 'downscript=no' to avoid error:

/etc/qemu-ifdown: could not launch network script

---
 client/tests/kvm/kvm_vm.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
client/tests/kvm/kvm_vm.py +2 -0
index a8d96ca..0b8efbc 100755
@@ -252,6 +252,8 @@ class VM:
                 if script_path:
                     script_path = kvm_utils.get_path(root_dir, script_path)
                     qemu_cmd += ",downscript=%s" % script_path
+                else:
+                    qemu_cmd += ",downscript=no"
             # Proceed to next NIC
             vlan += 1
 
Signature · 1 line
1.6.2.5
#1 lore raw

Applied, thanks!

Quoted 30 lines · Yolkfull Chow

If no downscript is assigned, add 'downscript=no' to avoid error:

/etc/qemu-ifdown: could not launch network script

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

 1 files changed, 2 insertions(+), 0 deletions(-)
client/tests/kvm/kvm_vm.py +0 -0
index a8d96ca..0b8efbc 100755
@@ -252,6 +252,8 @@ class VM:

                if script_path:
                    script_path = kvm_utils.get_path(root_dir, script_path) qemu_cmd += ",downscript=%s" % script_path
+                else:
+                    qemu_cmd += ",downscript=no"
            # Proceed to next NIC
            vlan += 1

--
1.6.2.5

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

Signature · 1 line
Lucas