From mboxrd@z Thu Jan 1 00:00:00 1970 From: pradeep Subject: Re: [PATCH 18/18] KVM test: Add subtest of testing offload by ethtool Date: Wed, 6 Oct 2010 14:26:46 +0530 Message-ID: <20101006142646.09c45a03@skywalker> References: <1285627444-2732-1-git-send-email-lmr@redhat.com> <1285627444-2732-19-git-send-email-lmr@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: autotest@test.kernel.org, kvm@vger.kernel.org, mst@redhat.com, akong@redhat.com, jasowang@redhat.com, mgoldish@redhat.com To: Lucas Meneghel Rodrigues Return-path: Received: from e4.ny.us.ibm.com ([32.97.182.144]:59391 "EHLO e4.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754363Ab0JFI44 (ORCPT ); Wed, 6 Oct 2010 04:56:56 -0400 Received: from d01relay06.pok.ibm.com (d01relay06.pok.ibm.com [9.56.227.116]) by e4.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id o968f5To017492 for ; Wed, 6 Oct 2010 04:41:05 -0400 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay06.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o968uqVd1908836 for ; Wed, 6 Oct 2010 04:56:52 -0400 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o968uqXN011025 for ; Wed, 6 Oct 2010 04:56:52 -0400 In-Reply-To: <1285627444-2732-19-git-send-email-lmr@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 27 Sep 2010 18:44:04 -0400 Lucas Meneghel Rodrigues wrote: > + > + vm = kvm_test_utils.get_living_vm(env, params.get("main_vm")) > + session = kvm_test_utils.wait_for_login(vm, > + timeout=int(params.get("login_timeout", 360))) > + # Let's just error the test if we identify that there's no > ethtool installed > + if session.get_command_status("ethtool -h"): > + raise error.TestError("Command ethtool not installed on > guest") > + session2 = kvm_test_utils.wait_for_login(vm, > + timeout=int(params.get("login_timeout", 360))) > + mtu = 1514 > + feature_status = {} > + filename = "/tmp/ethtool.dd" > + guest_ip = vm.get_address() > + ethname = kvm_test_utils.get_linux_ifname(session, > vm.get_mac_address(0)) > + supported_features = params.get("supported_features").split() I guess split this expects input. 23:48:03 ERROR| Test failed: AttributeError: 'NoneType' object has no attribute 'split' 22.12', '00:1a:4a:65:09:09': '192.168.122.66', '9a:52:2f:62:12:63': '192.168.122.151', '9a:52:2f:62:6b:28': '192.168.122.35'}, 'version': 0, 'tcpdump': } 23:48:05 INFO | ['iteration.1'] 23:48:05 ERROR| Exception escaping from test: Traceback (most recent call last): File "/home/pradeep/vhost_net/autotest/client/common_lib/test.py", line 412, in _exec _call_test_function(self.execute, *p_args, **p_dargs) File "/home/pradeep/vhost_net/autotest/client/common_lib/test.py", line 605, in _call_test_function raise error.UnhandledTestFail(e) UnhandledTestFail: Unhandled AttributeError: 'NoneType' object has no attribute 'split' Traceback (most recent call last): File "/home/pradeep/vhost_net/autotest/client/common_lib/test.py", line 598, in _call_test_function return func(*args, **dargs) File "/home/pradeep/vhost_net/autotest/client/common_lib/test.py", line 284, in execute postprocess_profiled_run, args, dargs) File "/home/pradeep/vhost_net/autotest/client/common_lib/test.py", line 202, in _call_run_once self.run_once_profiling(postprocess_profiled_run, *args, **dargs) File "/home/pradeep/vhost_net/autotest/client/common_lib/test.py", line 308, in run_once_profiling self.run_once(*args, **dargs) File "/home/pradeep/vhost_net/autotest/client/tests/kvm/kvm.py", line 73, in run_once run_func(self, params, env) File "/home/pradeep/vhost_net/autotest/client/tests/kvm/tests/ethtool.py", line 185, in run_ethtool supported_features = params.get("supported_features").split() AttributeError: 'NoneType' object has no attribute 'split' --Pradeep