From patchwork Wed Oct 20 06:55:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Yang X-Patchwork-Id: 267781 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 o9K6uJwU011204 for ; Wed, 20 Oct 2010 06:56:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758409Ab0JTGz6 (ORCPT ); Wed, 20 Oct 2010 02:55:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38984 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758451Ab0JTGz5 (ORCPT ); Wed, 20 Oct 2010 02:55:57 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9K6tuAi024677 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 20 Oct 2010 02:55:56 -0400 Received: from localhost.localdomain (dhcp-91-72.nay.redhat.com [10.66.91.72]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o9K6trZg016508; Wed, 20 Oct 2010 02:55:54 -0400 From: Feng Yang To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Feng Yang Subject: [PATCH] KVM Test: add -w parameter in nc command in kvm_utils.py Date: Wed, 20 Oct 2010 14:55:53 +0800 Message-Id: <1287557753-13831-1-git-send-email-fyang@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 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]); Wed, 20 Oct 2010 06:56:19 +0000 (UTC) diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py index a51c857..526d38d 100644 --- a/client/tests/kvm/kvm_utils.py +++ b/client/tests/kvm/kvm_utils.py @@ -733,7 +733,7 @@ def remote_login(client, host, port, username, password, prompt, linesep="\n", elif client == "telnet": cmd = "telnet -l %s %s %s" % (username, host, port) elif client == "nc": - cmd = "nc %s %s" % (host, port) + cmd = "nc %s %s -w %s" % (host, port, timeout) else: logging.error("Unknown remote shell client: %s" % client) return