diff --git a/qemu/tests/multi_nics_verify.py b/qemu/tests/multi_nics_verify.py index 662e4abc392172654eea9c552cd449e75dced447..456f0d3a162e0bcfd6dfa3577ea3ebed239444ac 100644 --- a/qemu/tests/multi_nics_verify.py +++ b/qemu/tests/multi_nics_verify.py @@ -79,14 +79,13 @@ def run(test, params, env): if s != 0: err_msg = "Failed to create ether config file: %s\nReason is: %s" test.error(err_msg % (eth_config_path, o)) - session.close() # Reboot and check the configurations. - new_session = vm.reboot(session) - s, msg = check_nics_num(nics_num, new_session) + session = vm.reboot(session) + s, msg = check_nics_num(nics_num, session) if not s: test.fail(msg) - new_session.close() + session.close() # NICs matched. logging.info(msg)