From patchwork Mon Nov 25 15:20:48 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: 845335 Delivered-To: patch@linaro.org Received: by 2002:a5d:688e:0:b0:382:43a8:7b94 with SMTP id h14csp1245552wru; Mon, 25 Nov 2024 07:23:10 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWtfgMSYyoe0z6MUA5F7B4IJo1RIGgt4EED/YsfjepKciZsWcGKXbcsyFXDo6EfCEhqhgUHuw==@linaro.org X-Google-Smtp-Source: AGHT+IGrzPzg0/RTum/DKlmzkRGFXooda+WXF4z/tvf73uFVYYH3hr1hjtqX604oWbTjcGW2Ndm8 X-Received: by 2002:a05:6808:180a:b0:3e7:61e6:8116 with SMTP id 5614622812f47-3e915ae7e1amr13483133b6e.29.1732548189836; Mon, 25 Nov 2024 07:23:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732548189; cv=none; d=google.com; s=arc-20240605; b=IySRwtWTLaYhZLFLWH4KwBEFXINDF3O83m6MAlvUqUEgK65jmeji/ezz8EIXDuqFig Ckt5ardJZH4kYZy+Gf5AdX+zK8z9u7TiAm5BWbD3wT+XREtCwuF0UnlLyP0ANTr2e3he 1zLyWlyHruUf5yRRNRdP9MemmcfnEaOYtUEcGyoJ7lnjNQfl8/BYCmA8WR6BUyxjvB/M tYlOGe7PuTDHzr8wTRHWHXVpqBkcpcf5TE5l8JP8PhgR04yEg6JIZ798f8XFjiRiu50k 9b4/MS9vH3fbOjtYfKupCsWD7yh1cUGWQG3TRw1Lx1eph7rtam4YV29xJPfLgiyX0oo3 NX5w== 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=75aAdTQGB89uDYpLUkbXQ/KFedluLHMzOUSJGMjOfUE=; fh=6mDKvW8kWNqSgMRXstCIjuE/wvBsxXt+CmnWPweyKjQ=; b=KkRKAwC8kUwGRggZTzVKdv62JLK6YoAsu3omGdehSElp/S0r7uD8+Fy1ZbPrTYy7NN giFbLZ+bLlkoIcMt+ZfYBLhzrD/2hI8jcW/Lfy/RXsv6Uw6PWMTxRdvNhGbTdOZgebi4 gJBJxl8aV0TSRZYZrMEB8HT9CjDDEbX3MFxOTh7/UX+x4Ryj2QoGRRB+lrjgRcd7cuN+ QU7EciXfCcb2sqwyDs+LAxD0LZunxWBKKNF4DcqBH4t/RYEKqDchVHBaStQBtRJGS1aQ xc9OryBSln5E98mq9ZEUY5o1CdQl2Wv2+aufUwqW/2/2geU3f7eRD7laOaeycL9RVZxq t0QA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kn5/qhN8"; 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 71dfb90a1353d-514fb00b952si2738114e0c.125.2024.11.25.07.23.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Nov 2024 07:23:09 -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="kn5/qhN8"; 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 1tFatq-0003zI-Vj; Mon, 25 Nov 2024 10:21:18 -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 1tFato-0003xJ-GR for qemu-devel@nongnu.org; Mon, 25 Nov 2024 10:21:16 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFatm-0001lj-TH for qemu-devel@nongnu.org; Mon, 25 Nov 2024 10:21:16 -0500 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-3824038142aso3011698f8f.2 for ; Mon, 25 Nov 2024 07:21:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732548073; x=1733152873; 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=75aAdTQGB89uDYpLUkbXQ/KFedluLHMzOUSJGMjOfUE=; b=kn5/qhN8pJWzefUOE9B3+IyswA0MsfWgGORUJ/BJJiYcYNhdwgPPDEEefJ4yQL5B7q AMZqxk9o5p59UAQ9c2cJSE+t0HhaFzoSH+QfYRI70Wtbo24ptk5AmTXitGW/N3TnNo3H blNRpB0noIYERyJoZ+qVYxgd/H0CUoj+YBpqmfjcVHbeUsSQGKP0xbggDFk2RBRQ4L/X 95sxTb1B5AhxVPO6FxELAFnzPa6gAjb3dhDa3VHBPn5z/HUBLAZXygXRBF2hqLoUtqKc HZp0J5cqb8q6FUxECddqW/AnQIeQob+LuSO31AI1ORM7t7BOuVEvXVWQARJyXhStvDU7 RB+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732548073; x=1733152873; 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=75aAdTQGB89uDYpLUkbXQ/KFedluLHMzOUSJGMjOfUE=; b=O/go3Y3RHSaLUndadbYeoZFcYcQyBreY3NLmxofbhyMb3BrzlD1PUUFMxZeadKtMLq J07ZCs08JukphH4HHM5jXONG5ZS7kWMwYD0mvSr2bRg/qNS/VahUDysha4sk9NjZ88Pe dbKkH14j/4HCXN8HGkJCUEJbxvdtpjPBZIP0oQbOKgYrKvS4MooaJAwYqs/6TEHMGabK XkAgqAM5p8ms3cGXOHU3o8/bbVfcC0wBEltLvnKRIpoVWNH2Hf+F3S/Ii9BW4mbh3HYm nSbRr5WiyYR252FSoyEC+xnfzPanfqPv/RSdQTzgSlbVlu3g3G9rne7o3wrVZE0aHNyc ls6w== X-Gm-Message-State: AOJu0Yz0KmZmWoS7IbKQ+WQ7jhzOhVMA11nyFUd//IWRo+F+enI9DbJi kuxTwgrfhHF5xUDFW686tgPrszNIovEdqwmJuRYU7fInMBQBqP+6Hu9XSQEaezI= X-Gm-Gg: ASbGnct1qH98hHF0NjpD9N5VucE7h3kR4Au9kkTZpTLggGjaa/km7cE3cK2So9PtJjt gKtFggEFf2xEmSN5iap45A7uxyxuUTI3sYtTK2TGu57WveUzqOQmMuxRi1mJjguqUKCckEO+v8P kKnIayrD99kT8UiD4HDVnXJrdSuE/8AkHJGpH0ZdyPJ6Q0WPdLhtJImzOpZgzOz2zodqQLJZ18B tWNDzMQq/hRoXYZ2YA85Nz/elz9UFAEr3tIRbFzTgq1PCmw X-Received: by 2002:a5d:6da7:0:b0:382:4926:98fa with SMTP id ffacd0b85a97d-38260bccdf8mr10429308f8f.40.1732548073107; Mon, 25 Nov 2024 07:21:13 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-433b01e1188sm202319975e9.1.2024.11.25.07.21.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2024 07:21:09 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id CB8C060B5A; 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 11/28] tests/functional: enable debug logging for QEMUMachine Date: Mon, 25 Nov 2024 15:20:48 +0000 Message-Id: <20241125152105.2100395-12-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::430; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x430.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é 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> Tested-by: Thomas Huth Reviewed-by: Thomas Huth Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth Message-Id: <20241121165806.476008-12-alex.bennee@linaro.org> 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():