From patchwork Tue Nov 12 14:50:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 179205 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp7853716ocf; Tue, 12 Nov 2019 06:56:28 -0800 (PST) X-Google-Smtp-Source: APXvYqz+87dbyuY5BNN3/gRDXIYQP5oOEU+jHL8MXF9o56PLMTxgsSjO8c1sID6nYJw1Bq464Xg1 X-Received: by 2002:a37:9d96:: with SMTP id g144mr15995334qke.93.1573570587926; Tue, 12 Nov 2019 06:56:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573570587; cv=none; d=google.com; s=arc-20160816; b=fP2fD08I28R3I+HL1NiBTH9Vf5JO7a535GWNQ40hCVJgTCm+ZpzpyJaqH1Qhu935iu H6YIKVAUFE6pBnBLBwly9ugwGl+GdDRRqiHYWeI1B/Fj904fgDWm733qUFkKybEnSiBC m07zL30K2Fj6R/oSBdztHrQJz7SBKkAzr3yyObh+dLBbmBmDSVeFvZhUIX2H7Q9ZysnN x8UMJ6TvBPwnoKdxLa/hPcMdvrfFvXJztgLIyPYi6TMWm2xgvWCFb5nv2OsYUfMr2ght e2y9L/FJQ5y4wMq/bpJQz2EI/Ylt9k96TM0/4buza09/dGVJ4U+QjRsHYa58hyNktrxt YyVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=MgNvQL45Hwg6psU5bHdK3yy5lx6MA/Ql526zQmB9a9Y=; b=ZdE1CYsnuLjc2HK0z0ddqxf1qKLsq4ByN9sTxqdWBI+k+tVMb4T/kigU5WeBQsnar1 xAHBhCWDVC0EEr+4hVpfcEghjcyvo0E6Vk0tElrnl/15BOAwsWkRU+77Fa7s/kLAWPd9 fh1h33O1LEPiDuinJbaJWCdbzvb35yIyGUvg7hj2r09DIczhg0EtMWMA7K7yxNqb07JB wwz87smNM4c+uSn5Cycz+CY3dFLMIarxIEOWpD0T9m1GfFnW5+rnEd59FIvfRHE3EVnh j/N5wW7cQ13wzO3WnROM+zBv+AM+VKD9opKlsTOxuzEPxGDCZi7+Mw0YgC2EULmz7icd wSKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=trNSRwzD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m56si11040487qta.375.2019.11.12.06.56.27 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Nov 2019 06:56:27 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=trNSRwzD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:35946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUXal-0001eZ-3T for patch@linaro.org; Tue, 12 Nov 2019 09:56:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59705) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUXV6-0003QH-SN for qemu-devel@nongnu.org; Tue, 12 Nov 2019 09:50:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUXV5-00034R-VM for qemu-devel@nongnu.org; Tue, 12 Nov 2019 09:50:36 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:50404) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iUXV5-00033y-PR for qemu-devel@nongnu.org; Tue, 12 Nov 2019 09:50:35 -0500 Received: by mail-wm1-x329.google.com with SMTP id l17so3522976wmh.0 for ; Tue, 12 Nov 2019 06:50:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MgNvQL45Hwg6psU5bHdK3yy5lx6MA/Ql526zQmB9a9Y=; b=trNSRwzDOM+I+w+H1MxuC9KDatbbPZHcdX1vR1zCVnPcELDa5FlIyl86mtiuXyaDET GijOzm/Yn8ZtLPzvnZfhE4Eh/7j8bwwId1BH+EX6G48sBjXZAMqchAxIX+zLw+pDLhd5 CQx3ZFMHdxctmz5vcfmw5siihbpO50oizgvSoWCn1nuDkT9tvRFVhdWz2jU/I0UsttRC QaR0FEz9qRzf621VE+5+G6LPyMv4sY641mb+iXb1lu2tAh7c/pMH/EZRTTctRXHXMaOl CLKdeBH4nk6GtCWFvWQQT3vZ8lErALR9IgVRt+4WV9sQJZZCyYycfHkdpq+/Ho4tI5At Isng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MgNvQL45Hwg6psU5bHdK3yy5lx6MA/Ql526zQmB9a9Y=; b=EZFlGrLWpG3r+Jkg4marebtaQVmjPkPFaX0en4/Xu6+s+D/fG59Qy6qW2ivZh4379T uX0bnRlumXY0LWfgVWmN8CROK5x99fxk174cpC2rM0Vg1KRCJthmLPNshYY1dSemnATG H5MUgyACIuZW/Hz2ZxF72mbx9cojVpY+BGq4WWc3uO82eJoye4CBm8Y1rww/8fK5KagQ Otru7X9QXBdq/0dxNKAZq0VLy1/t8wdAcXWjv6qiDBQwZue8UCID/A+63H7iBq8cSfrz 6s2QTtE/rGHAxDd3h/DAZNxOQliACIHdXPvBKq6NAw3avIFbFZXpcCXNL/QzGt5hJBN5 PuLg== X-Gm-Message-State: APjAAAV1gShs/FQ3AEO4CYdj+IZftm/mI76wobBQFNq/0eID8yrjhTZx HJddvV7bqugiysZRsnf8FzOyGw== X-Received: by 2002:a7b:c7d3:: with SMTP id z19mr4509359wmk.98.1573570234658; Tue, 12 Nov 2019 06:50:34 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id 36sm26795482wrj.42.2019.11.12.06.50.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 06:50:30 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4DC681FF90; Tue, 12 Nov 2019 14:50:29 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 3/8] tests/vm: use console_consume for netbsd Date: Tue, 12 Nov 2019 14:50:23 +0000 Message-Id: <20191112145028.26386-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191112145028.26386-1-alex.bennee@linaro.org> References: <20191112145028.26386-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::329 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Kamil Rytarowski , Gerd Hoffmann , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Gerd Hoffmann Use new helper to read all pending console output, not just a single char. Unblocks installer boot. Signed-off-by: Gerd Hoffmann Message-Id: <20191031085306.28888-4-kraxel@redhat.com> Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé -- 2.20.1 diff --git a/tests/vm/netbsd b/tests/vm/netbsd index 445c34dc495..0083f7ff6a7 100755 --- a/tests/vm/netbsd +++ b/tests/vm/netbsd @@ -93,7 +93,7 @@ class NetBSDVM(basevm.BaseVM): for char in list("5consdev com0\n"): time.sleep(0.2) self.console_send(char) - self.console_wait("") + self.console_consume() self.console_wait_send("> ", "boot\n") self.console_wait_send("Terminal type", "xterm\n")