From patchwork Wed Feb 10 16:30:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yogi X-Patchwork-Id: 78447 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1AGUOrE031655 for ; Wed, 10 Feb 2010 16:30:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755421Ab0BJQaW (ORCPT ); Wed, 10 Feb 2010 11:30:22 -0500 Received: from e31.co.us.ibm.com ([32.97.110.149]:47879 "EHLO e31.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754806Ab0BJQaW (ORCPT ); Wed, 10 Feb 2010 11:30:22 -0500 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by e31.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id o1AGLrUC001218 for ; Wed, 10 Feb 2010 09:21:53 -0700 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay05.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o1AGUAbJ053786 for ; Wed, 10 Feb 2010 09:30:12 -0700 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o1AGU6n0020810 for ; Wed, 10 Feb 2010 09:30:06 -0700 Received: from [9.124.158.64] (yogi-laptop.in.ibm.com [9.124.158.64]) by d03av04.boulder.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id o1AGU3gs020426; Wed, 10 Feb 2010 09:30:04 -0700 Subject: [Autotest] [KVM-AUTOTEST PATCH 4/5] KVM test: Support for Parallel install of guest OS From: yogi To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Ryan Harper In-Reply-To: <1265818995.6747.25.camel@yogi-laptop> References: <1265818995.6747.25.camel@yogi-laptop> Date: Wed, 10 Feb 2010 22:00:02 +0530 Message-Id: <1265819402.6747.30.camel@yogi-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 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 (demeter.kernel.org [140.211.167.41]); Wed, 10 Feb 2010 16:30:24 +0000 (UTC) diff --git a/client/tests/kvm/unattended/RHEL-5-series.ks b/client/tests/kvm/unattended/RHEL-5-series.ks index 41bb391..aea4150 100644 --- a/client/tests/kvm/unattended/RHEL-5-series.ks +++ b/client/tests/kvm/unattended/RHEL-5-series.ks @@ -28,10 +28,10 @@ os.system('dhclient') os.system('chkconfig sshd on') os.system('iptables -F') os.system('echo 0 > /selinux/enforce') -port = 12323 -buf = 1024 -addr = ('10.0.2.2', port) -client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -client.connect(addr) -client.sendto('done', addr) +os.system('dhclient eth0') +server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +server.bind(('', 12323)) +server.listen(1) +(client, addr) = server.accept() +client.send("thank u for connecting") client.close()