From patchwork Mon Nov 25 15:20:49 2024 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: 845330 Delivered-To: patch@linaro.org Received: by 2002:a5d:688e:0:b0:382:43a8:7b94 with SMTP id h14csp1245030wru; Mon, 25 Nov 2024 07:22:24 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUU9Fof5ZkPU1O1hP/AR910ywyvMABwXpKs0DGNLY4rQ4/Lcm4nzpfk+byH5C76VaoRnNkFKA==@linaro.org X-Google-Smtp-Source: AGHT+IHedLZoIS/ne6+ObU4y0PTGA1mlC19rOdhX04EAE+AFXKY1fz/bIvlOnpQmnSQuYDCU5KPh X-Received: by 2002:a05:6358:50c4:b0:1ca:a1d1:65dd with SMTP id e5c5f4694b2df-1caa1d167afmr114981955d.25.1732548143840; Mon, 25 Nov 2024 07:22:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732548143; cv=none; d=google.com; s=arc-20240605; b=jFHgn02H/X0LJBocpqN4vAmJDO3JmE4WKCLK3AjpMNsfQhuK/1vj/Ju20J99SjasL9 8+Lgg4al/HXazfervqtM/1uT0PL426iXlXTcY0/xENXbZRVAwKkbdP1P5Xf4GotkD968 B7fkxr2kKqRc63KIF4+5EOukbJW1daWU55stMkaH4BCu4cpDpcOAauKQvFf41ur0eTOQ oOAPe48sWb3MZYW83k5WAe8LSsTTWthyTQLcbk6Vf3oE9YTqgJCUNHc4aFIG/a/dTut+ 7N9Zq6BMM14INr1e9gHKgcDibMcFHJmTbXjXWxLoVTcLIsi3FuXwMDISe3nDsmwYrm3x v/Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=u553UREy8BrfaQ1eQJGRMRlQygWldbMBkNQMqilnB1A=; fh=6mDKvW8kWNqSgMRXstCIjuE/wvBsxXt+CmnWPweyKjQ=; b=auXU/bIfXKIULFgL4g7Tm+ciFT+SLxegmCIWLzkCkJVXhfmyGj0NfzstI7xhIR7rBz 4X1hpbJINVknvbBM2yF+gxPzf3g2WzSVTlBZtEh4PIX1C3TWgHW2o/mN4OOwDGr22e8v ctjP75au+lYeBlX4DHzBd8G5ehAq4cVegua77Mv97lUo69P/OGmTSjVLeor9SuSQQker S7dYSfZkz6e2Jm9x3lTho8oSoSr/FRqmxXf/vQPgdnXx8j5Caf2QS43G7cFRpMFfO66s DqiN48Dv8tmCv1wSAuBvCN9QKteegjVhlB1k0+m7jmUf2utvk8tkyeRQGgcf2CCFMF88 6ifw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QGyxGRbK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ada2fe7eead31-4adda540273si2734527137.159.2024.11.25.07.22.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Nov 2024 07:22:23 -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=pass header.i=@linaro.org header.s=google header.b=QGyxGRbK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFatr-0003za-Q8; Mon, 25 Nov 2024 10:21:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFatp-0003y2-Ao for qemu-devel@nongnu.org; Mon, 25 Nov 2024 10:21:17 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFatn-0001mE-PS for qemu-devel@nongnu.org; Mon, 25 Nov 2024 10:21:17 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-43155abaf0bso42349395e9.0 for ; Mon, 25 Nov 2024 07:21:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732548074; x=1733152874; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=u553UREy8BrfaQ1eQJGRMRlQygWldbMBkNQMqilnB1A=; b=QGyxGRbKvP9kS3faklCLMlSS9RBfhaLteMl6xOXYLgtwT7R5yhmKZ+hPL5mCNRRjP4 JFgAVbCdSGsG8gu9c3jwRpaqjIsw2WhqKBkxS2G2UVQR69S5qb+OC0fCMTPKc/v4F5ea mDZFSvVvqnHGqXCI/6PicTLzBT+5SJICpZzuqJURYRaboYAC+qij/AFh3O3LdHppUN8l ZNHuG6URS0I5nro7DPvyhrlAS1HNfGan04sxnQX7ktg7KZiB0ItA6XUCjpxWDR3tWF3f A7jNs3ttxhTpgkgwMVThjfcdW09yzayRdWs+d4tXpqb5xTj64ERHq+GXL+G809dVohjb YskQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732548074; x=1733152874; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u553UREy8BrfaQ1eQJGRMRlQygWldbMBkNQMqilnB1A=; b=wD3Q+otCe5m5iTUNJrguxVk8IPIvwvAzpUd6ZGchEGtovraqZxDeT4yoZfaodM/UG/ mzFKCdh+ZP5bRGowp5NFfP7VElOwk+DBsMvYHJ8VTtq10qBIF1KRp6ggSn0Lo1rlRbM5 QQeC6gCqK8yoSc0E3w16x+TxRZT2xGlRz7Kb20QTrW6dystZXVdJFlt6mz+IS4r8zptB V1j57DP4+zfkqmZd+aiJyQYgXPtz9Y4zSO1ulz9VGXyywC4590YyqR9sr/JSav8hmmTl 3YX4f2u4F5/jy8ox2ye7fS0h74gXjOktMwgPhu7tEOxmJEXVfr/icQevE2j3VoIPU2O0 ZqGg== X-Gm-Message-State: AOJu0YzmgzSJ7LrxU/BaiOOGx6OpN4M+pMIrY1MDIlWZ5SWFKpr6RxHU LoMe9HKuRjhHISi9eV4bCFBrHN3P6w3BjnG9si9LjvQfRBzi0u+F/oh6HJKG2Ik= X-Gm-Gg: ASbGncukGhqdqGQEpErEMm/YnrcF3r01+5udaF3lbUVRuSMoBU9i/Ae0nSxYmzS95Qh TwNDwe1X1TT9vCTF6fmDwDtiNmiJRiwP3YOutGforh478mQYhaSBeG4GB6p0Qmj9BDdaU+S55AT be/8h1kOs5Isk29Nie31BqBQSAi6kXlSyHV6V1D9TpIpQT0XxCqqfjE0zI/J2HtwXUTdaQRBViC JlKQAT/s8DTidpZWPJmfchawbIarcuulLwgU91DVnlF4Gxb X-Received: by 2002:a05:600c:4e91:b0:431:6083:cd38 with SMTP id 5b1f17b1804b1-433ce417b2amr108505855e9.6.1732548074155; Mon, 25 Nov 2024 07:21:14 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fb30590sm10692523f8f.57.2024.11.25.07.21.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2024 07:21:10 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id E10DE60B68; Mon, 25 Nov 2024 15:21:06 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= Subject: [PULL 12/28] tests/functional: logs details of console interaction operations Date: Mon, 25 Nov 2024 15:20:49 +0000 Message-Id: <20241125152105.2100395-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241125152105.2100395-1-alex.bennee@linaro.org> References: <20241125152105.2100395-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Daniel P. Berrangé When functional tests go wrong, it will often be related to the console interaction wait state. By logging the messages that we're looking for, and data we're about to be sending, it'll be easier to diagnose where tests are getting stuck. Signed-off-by: Daniel P. Berrangé Message-Id: <20241121154218.1423005-13-berrange@redhat.com> Reviewed-by: Thomas Huth Signed-off-by: Alex Bennée Message-Id: <20241121165806.476008-13-alex.bennee@linaro.org> diff --git a/tests/functional/qemu_test/cmd.py b/tests/functional/qemu_test/cmd.py index cbabb1ceed..98722a9cf6 100644 --- a/tests/functional/qemu_test/cmd.py +++ b/tests/functional/qemu_test/cmd.py @@ -85,6 +85,9 @@ def _console_interaction(test, success_message, failure_message, vm = test.vm console = vm.console_file console_logger = logging.getLogger('console') + test.log.debug( + f"Console interaction: success_msg='{success_message}' " + + f"failure_msg='{failure_message}' send_string='{send_string}'") while True: if send_string: vm.console_socket.sendall(send_string.encode())