'nic_script' was initialized in kvm/tests_base.cfg. When using tap mode network,
make_qemu_command() was called, nic_params.get("script") returned 'None', it
caused guest boot up failed, it should be nic_params.get("nic_script").

Signed-off-by: Amos Kong <[email protected]>
---
 0 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index bca9d15..3943207 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -315,8 +315,8 @@ class VM:
                 mac = kvm_utils.get_mac_ip_pair_from_dict(nic_params)[0]
             qemu_cmd += add_nic(help, vlan, nic_params.get("nic_model"), mac)
             # Handle the '-net tap' or '-net user' part
-            script = nic_params.get("script")
-            downscript = nic_params.get("downscript")
+            script = nic_params.get("nic_script")
+            downscript = nic_params.get("nic_downscript")
             if script:
                 script = kvm_utils.get_path(root_dir, script)
             if downscript:

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

Reply via email to