From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9aef-00059W-T9 for qemu-devel@nongnu.org; Fri, 20 Apr 2018 14:21:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9aeb-0006oE-03 for qemu-devel@nongnu.org; Fri, 20 Apr 2018 14:21:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38200) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f9aea-0006lQ-Qb for qemu-devel@nongnu.org; Fri, 20 Apr 2018 14:21:00 -0400 From: Eduardo Habkost Date: Fri, 20 Apr 2018 15:19:31 -0300 Message-Id: <20180420181951.7252-5-ehabkost@redhat.com> In-Reply-To: <20180420181951.7252-1-ehabkost@redhat.com> References: <20180420181951.7252-1-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [RFC 04/24] avocado_qemu: Be lenient towards poluted serial console List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Amador Pahim , Stefan Hajnoczi , =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= , Alistair Francis , Cleber Rosa , Fam Zheng From: Luk=C3=A1=C5=A1 Doktor The serial console is frequently spammed kernel messages, let's not be so strict and match lines also containing other parts. There is still possibility of failure in case kernel injects message on a new line after the expected output producing non-matching last_line. Anyway checking for any-line would be a bit too prone to false-positives so let's just go with this at this point. Signed-off-by: Luk=C3=A1=C5=A1 Doktor Signed-off-by: Eduardo Habkost --- tests/avocado/avocado_qemu/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/avocado/avocado_qemu/test.py b/tests/avocado/avocado_q= emu/test.py index 9cc163b3a8..fb16785a20 100644 --- a/tests/avocado/avocado_qemu/test.py +++ b/tests/avocado/avocado_qemu/test.py @@ -131,9 +131,9 @@ def _handle_prompts(session, username, password, prom= pt, timeout=3D10, match, text =3D session.read_until_last_line_matches( [r"[Aa]re you sure", r"[Pp]assword:\s*", # Prompt of rescue mode for Red Hat. - r"\(or (press|type) Control-D to continue\):\s*$", - r"[Gg]ive.*[Ll]ogin:\s*$", # Prompt of rescue mode for= SUSE. - r"(?