From patchwork Mon Dec 27 16:01:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 434621 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBRKCV9n025997 for ; Mon, 27 Dec 2010 20:16:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754438Ab0L0QCn (ORCPT ); Mon, 27 Dec 2010 11:02:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:4515 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754416Ab0L0QCm (ORCPT ); Mon, 27 Dec 2010 11:02:42 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oBRG2fmO003199 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 27 Dec 2010 11:02:41 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id oBRG2fXA024116; Mon, 27 Dec 2010 11:02:41 -0500 Received: from moof.tlv.redhat.com (dhcp-1-185.tlv.redhat.com [10.35.1.185]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id oBRG1rGG017175; Mon, 27 Dec 2010 11:02:40 -0500 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH 28/28] KVM test: whql_submission.py: log in using all NICs before running tests Date: Mon, 27 Dec 2010 18:01:55 +0200 Message-Id: <1293465715-16599-28-git-send-email-mgoldish@redhat.com> In-Reply-To: <1293465715-16599-1-git-send-email-mgoldish@redhat.com> References: <1293465715-16599-1-git-send-email-mgoldish@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 27 Dec 2010 20:16:59 +0000 (UTC) diff --git a/client/tests/kvm/tests/whql_submission.py b/client/tests/kvm/tests/whql_submission.py index e40e369..2d01e30 100644 --- a/client/tests/kvm/tests/whql_submission.py +++ b/client/tests/kvm/tests/whql_submission.py @@ -25,6 +25,13 @@ def run_whql_submission(test, params, env): vms.append(kvm_test_utils.get_living_vm(env, vm_name)) sessions.append(kvm_test_utils.wait_for_login(vms[-1], 0, 240)) + # Make sure all NICs of all client VMs are up + for vm in vms: + nics = kvm_utils.get_sub_dict_names(vm.params, "nics") + for nic_index in range(len(nics)): + s = kvm_test_utils.wait_for_login(vm, nic_index, 600) + s.close() + # Collect parameters server_address = params.get("server_address") server_shell_port = int(params.get("server_shell_port")) @@ -68,6 +75,13 @@ def run_whql_submission(test, params, env): sessions = kvm_utils.parallel((kvm_test_utils.reboot, (vm, session)) for vm, session in zip(vms, sessions)) + # Check the NICs again + for vm in vms: + nics = kvm_utils.get_sub_dict_names(vm.params, "nics") + for nic_index in range(len(nics)): + s = kvm_test_utils.wait_for_login(vm, nic_index, 600) + s.close() + # Run whql_pre_command and close the sessions if params.get("whql_pre_command"): for session in sessions: