From patchwork Tue Sep 29 20:04:22 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 50589 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8TK8A7B029624 for ; Tue, 29 Sep 2009 20:08:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753752AbZI2UID (ORCPT ); Tue, 29 Sep 2009 16:08:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753572AbZI2UID (ORCPT ); Tue, 29 Sep 2009 16:08:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13542 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751826AbZI2UIB (ORCPT ); Tue, 29 Sep 2009 16:08:01 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8TK84Dh017800; Tue, 29 Sep 2009 16:08:05 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8TK82M3023273; Tue, 29 Sep 2009 16:08:02 -0400 Received: from localhost.localdomain (dhcp-1-188.tlv.redhat.com [10.35.1.188]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n8TK80NV003847; Tue, 29 Sep 2009 16:08:01 -0400 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH 1/6] KVM test: kvm_subprocess: use read_nonblocking(0) instead of read_nonblocking (0.1) Date: Tue, 29 Sep 2009 22:04:22 +0200 Message-Id: <1254254667-19385-1-git-send-email-mgoldish@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/client/tests/kvm/kvm_subprocess.py b/client/tests/kvm/kvm_subprocess.py index 424c801..730f20e 100755 --- a/client/tests/kvm/kvm_subprocess.py +++ b/client/tests/kvm/kvm_subprocess.py @@ -1028,7 +1028,7 @@ class kvm_shell_session(kvm_expect): """ # Read all output that's waiting to be read, to make sure the output # we read next is in response to the newline sent - self.read_nonblocking(timeout=0.1) + self.read_nonblocking(timeout=0) # Send a newline self.sendline() # Wait up to timeout seconds for some output from the child @@ -1095,7 +1095,7 @@ class kvm_shell_session(kvm_expect): logging.debug("Sending command: %s" % command) # Read everything that's waiting to be read - self.read_nonblocking(0.1) + self.read_nonblocking(timeout=0) # Send the command and get its output self.sendline(command)