From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1tEAWP-0005YM-3J for mharc-qemu-rust@gnu.org; Thu, 21 Nov 2024 11:59:13 -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 1tEAVo-0004n7-8Z for qemu-rust@nongnu.org; Thu, 21 Nov 2024 11:58:37 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tEAVW-00084L-22 for qemu-rust@nongnu.org; Thu, 21 Nov 2024 11:58:35 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-431616c23b5so6661055e9.0 for ; Thu, 21 Nov 2024 08:58:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732208296; x=1732813096; 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=e2HZ23XNFOLk981JEHm7evbs/KcDQehVIWxXpboMiiM=; b=ZrMbeQ3ZJE61lgT5ynpIQkaQfqe1xdVyuEnHHbFuJj9nPfIBt+0toE4IoWWE0nfiVV M8IPHu9iKWjej8FWPzFtAEaBoz6+tvp5It3nrgd4sxTE9deqv/c5EJ6BkmBRvNsuKckp OP1jN+UDk9YrCyaFaFIPiqMJMA5pzz1LSauiE42G4UI3p6U0QkrdSL0oZDCEhHkPwpx4 ML8NO+VBTqOGxkwItP8TuWkr8kGOrfCWAXIy5FRT4tP/eK9Cfq70FEPxQcP8hMsD6B6q Pk/WVT9TDtRvtJbh0pB+7tuseOI4hSfpoF1H4Fay58Fp4gL6TGMGJbvvUkIRkXPNDRZJ b3mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732208296; x=1732813096; 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=e2HZ23XNFOLk981JEHm7evbs/KcDQehVIWxXpboMiiM=; b=mcTF9kbEGREAcgJz4NPIgCxoBkmS3A6w7ijySjhBI9v62XURMs2Y9kLeXm+MGzwTOB GMmBfpaN9OKkDsyzm+FGVsWM8Tlo0d8ZjNTmbqYf4AKDbPqn7cxNy8fQtTF0/b7AJBoy vjEmPjtUn3BV4cLRbmL9NWn7zvXDIe/ua06WoCTOzXngJ96bcLsbVvkthLSrNg1fAij6 J52CJwj2BuNXRKbu09D0cfG7/gnIkSZok2NF8aBWZ4fqpPNmC8g/FFGv+7XGTDUtOHX3 2yb5TG3OFeJuJeQw2LEV7xzYATjJ3bba9itK/9+Jp423Dz2s78XDysKnRjqiZ2Y6PM28 CRVg== X-Forwarded-Encrypted: i=1; AJvYcCU0U1XVYISBVaunADgAxbQuqfKoyVIemozcF1zkjteFAPdOhvqPR5FWXsNYITNWZCPa0iu0/kq/olI=@nongnu.org X-Gm-Message-State: AOJu0Yy6pMv3MsA4qfFhjGRND00wSU9FOw8jjhYTeYtHjpd5Lfh8mf0X ZBBneA8ajT9EALqjXjtTju/OmN6BE2McV++7IV9fCmZmz2Lr/kJKl7k4e7syY08= X-Gm-Gg: ASbGncuqX8H0WhbP+lWTBq+rc1i1Utt7ZMXaqp6byM+6rLjR1vZEnm3OpFO720CvMYg BoWHD6gGQ3+2hALNOOJSsa/pmQVHmXHc9KKgREJoQM8HDDrtaIrtqOEXx/P0NO02XUq92DpYc/y ljVln43QIWRdNhRVUqXB6fJjvNBuktr+METOixf7NOLLv9E4X4KU1gmRi6Qnw8NQ5XgkNU4sodu 1ZZnWZM+wKAlynA5QHmUPmhuGSs2UJc+WgeiSXiul1V64+8 X-Google-Smtp-Source: AGHT+IGDHBlSamv94hqq39SE1SaufjquwOaoSGOK1WLNw6iTeG+uZEgDu2CvhBFW9NHQ5b4/zJX4fw== X-Received: by 2002:a05:600c:a4b:b0:42c:b166:913 with SMTP id 5b1f17b1804b1-433c5cb049dmr36104345e9.11.1732208296361; Thu, 21 Nov 2024 08:58:16 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fbc44f7sm18708f8f.82.2024.11.21.08.58.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2024 08:58:14 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 7AA3D60357; Thu, 21 Nov 2024 16:58:07 +0000 (GMT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Michael S. Tsirkin" , Daniel Henrique Barboza , Pierrick Bouvier , Harsh Prateek Bora , Marcel Apfelbaum , Jiaxun Yang , Halil Pasic , Christian Borntraeger , qemu-ppc@nongnu.org, Daniel Henrique Barboza , Alexandre Iooss , qemu-riscv@nongnu.org, Thomas Huth , Bernhard Beschow , Thomas Huth , Eric Farman , Bin Meng , qemu-s390x@nongnu.org, Niek Linnenbank , qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , John Snow , Wainer dos Santos Moschetta , Cleber Rosa , qemu-rust@nongnu.org, Nicholas Piggin , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Palmer Dabbelt , Markus Armbruster , Weiwei Li , Mahmoud Mandour , Mark Cave-Ayland , Liu Zhiwei , Aurelien Jarno , Ani Sinha , Alistair Francis Subject: [PATCH 11/39] tests/functional: enable debug logging for QEMUMachine Date: Thu, 21 Nov 2024 16:57:38 +0000 Message-Id: <20241121165806.476008-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241121165806.476008-1-alex.bennee@linaro.org> References: <20241121165806.476008-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-rust@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: QEMU Rust-related patches and discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Nov 2024 16:58:39 -0000 From: Daniel P. Berrangé Set the 'qemu.machine' logger to 'DEBUG' level, to ensure we see log messages related to the QEMUMachine class. Most importantly this ensures we capture the full QEMU command line args for instances we spawn. Signed-off-by: Daniel P. Berrangé Message-Id: <20241121154218.1423005-12-berrange@redhat.com> Signed-off-by: Alex Bennée --- tests/functional/qemu_test/testcase.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/functional/qemu_test/testcase.py b/tests/functional/qemu_test/testcase.py index f9c9de1166..e2a329c3e5 100644 --- a/tests/functional/qemu_test/testcase.py +++ b/tests/functional/qemu_test/testcase.py @@ -57,9 +57,15 @@ def setUp(self, bin_prefix): self._log_fh.setFormatter(fileFormatter) self.log.addHandler(self._log_fh) + # Capture QEMUMachine logging + self.machinelog = logging.getLogger('qemu.machine') + self.machinelog.setLevel(logging.DEBUG) + self.machinelog.addHandler(self._log_fh) + def tearDown(self): if "QEMU_TEST_KEEP_SCRATCH" not in os.environ: shutil.rmtree(self.workdir) + self.machinelog.removeHandler(self._log_fh) self.log.removeHandler(self._log_fh) def main(): -- 2.39.5