Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2195350/?format=api
{ "id": 2195350, "url": "http://patchwork.ozlabs.org/api/patches/2195350/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260210201454.177202-2-stefanha@redhat.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260210201454.177202-2-stefanha@redhat.com>", "list_archive_url": null, "date": "2026-02-10T20:14:54", "name": "[PULL,1/1] tracetool-test: add QEMU_TEST_KEEP_SCRATCH=1 support", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "62fceaa82494285a37eaf04101766a13f20edf66", "submitter": { "id": 17227, "url": "http://patchwork.ozlabs.org/api/people/17227/?format=api", "name": "Stefan Hajnoczi", "email": "stefanha@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260210201454.177202-2-stefanha@redhat.com/mbox/", "series": [ { "id": 491736, "url": "http://patchwork.ozlabs.org/api/series/491736/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=491736", "date": "2026-02-10T20:14:53", "name": "[PULL,1/1] tracetool-test: add QEMU_TEST_KEEP_SCRATCH=1 support", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/491736/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2195350/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2195350/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=hJnUHxOc;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f9Xqd4C0bz1xx7\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 11 Feb 2026 07:15:25 +1100 (AEDT)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vpu8m-0006fe-NJ; Tue, 10 Feb 2026 15:15:22 -0500", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <stefanha@redhat.com>)\n id 1vpu8Y-0006LK-SX\n for qemu-devel@nongnu.org; Tue, 10 Feb 2026 15:15:07 -0500", "from us-smtp-delivery-124.mimecast.com ([170.10.133.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <stefanha@redhat.com>)\n id 1vpu8W-0007t4-6t\n for qemu-devel@nongnu.org; Tue, 10 Feb 2026 15:15:06 -0500", "from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-6-wBNJK9BXM6i1OhLDqRarJw-1; Tue,\n 10 Feb 2026 15:14:59 -0500", "from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 68FD919560A5; Tue, 10 Feb 2026 20:14:58 +0000 (UTC)", "from localhost (unknown [10.2.17.130])\n by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id C2D6C19560A3; Tue, 10 Feb 2026 20:14:57 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1770754500;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=8FSuW7r2ol5AVxNO7r0TBez76OwosxUPBcHM1LPSlvY=;\n b=hJnUHxOcftTt8vbycDVoLuIpMS58GD1SfhoPaRk46N/gnGULWGOJaZZCc7NLjjd9BtccUG\n tmCxYgbtzAtqabb5SGAgjvtSty5lBzUbh87hZujdK/A7fHT+0DQACCSMpU8YZI09k0qpuR\n /D2ZDfocHmkuObEW9EqTsxv4wfXK5wM=", "X-MC-Unique": "wBNJK9BXM6i1OhLDqRarJw-1", "X-Mimecast-MFC-AGG-ID": "wBNJK9BXM6i1OhLDqRarJw_1770754498", "From": "Stefan Hajnoczi <stefanha@redhat.com>", "To": "qemu-devel@nongnu.org", "Cc": "Peter Maydell <peter.maydell@linaro.org>,\n Stefan Hajnoczi <stefanha@redhat.com>", "Subject": "[PULL 1/1] tracetool-test: add QEMU_TEST_KEEP_SCRATCH=1 support", "Date": "Tue, 10 Feb 2026 15:14:54 -0500", "Message-ID": "<20260210201454.177202-2-stefanha@redhat.com>", "In-Reply-To": "<20260210201454.177202-1-stefanha@redhat.com>", "References": "<20260210201454.177202-1-stefanha@redhat.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Scanned-By": "MIMEDefang 3.0 on 10.30.177.12", "Received-SPF": "pass client-ip=170.10.133.124;\n envelope-from=stefanha@redhat.com;\n helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_PASS=-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": "qemu development <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "It can be useful to preserve the temporary files generated by the test\nfor manual inspection or diffing against expected output.\n\nSigned-off-by: Stefan Hajnoczi <stefanha@redhat.com>\nMessage-id: 20251118183915.177192-1-stefanha@redhat.com\nSigned-off-by: Stefan Hajnoczi <stefanha@redhat.com>\n---\n tests/tracetool/tracetool-test.py | 24 ++++++++++++++++++++----\n 1 file changed, 20 insertions(+), 4 deletions(-)", "diff": "diff --git a/tests/tracetool/tracetool-test.py b/tests/tracetool/tracetool-test.py\nindex 59e9ab3d6e..b99a0cd6d2 100755\n--- a/tests/tracetool/tracetool-test.py\n+++ b/tests/tracetool/tracetool-test.py\n@@ -9,6 +9,9 @@\n import tempfile\n \n \n+DELETE_TEMPFILE = not os.getenv(\"QEMU_TEST_KEEP_SCRATCH\", False)\n+\n+\n def get_formats(backend):\n formats = [\n \"c\",\n@@ -50,7 +53,8 @@ def test_tracetool_one(tracetool, backend, fmt, src_dir, build_dir):\n check_call(args, cwd=build_dir)\n actual = actual_file.read_text()\n finally:\n- actual_file.unlink()\n+ if DELETE_TEMPFILE:\n+ actual_file.unlink()\n \n if os.getenv(\"QEMU_TEST_REGENERATE\", False):\n print(f\"# regenerate {expect_file}\")\n@@ -85,14 +89,25 @@ def test_tracetool(tracetool, backend, source_dir, build_dir):\n except Exception as e:\n print(f\"# {e}\")\n fail = True\n+\n+ if DELETE_TEMPFILE:\n+ tempfile_hint = (\n+ \"QEMU_TEST_KEEP_SCRATCH=1 to preserve test output \"\n+ + \"files\"\n+ )\n+ else:\n+ tempfile_hint = f\"check test output files in {build_dir}\"\n+\n hint = (\n \" (set QEMU_TEST_REGENERATE=1 to recreate reference \"\n- + \"output if tracetool generator was intentionally changed)\"\n+ + \"output if tracetool generator was intentionally \"\n+ + \"changed or \" + tempfile_hint + \")\"\n )\n finally:\n print(f\"{status} {num} - {backend}.{fmt}{hint}\")\n finally:\n- build_events.unlink()\n+ if DELETE_TEMPFILE:\n+ build_events.unlink()\n \n return fail\n \n@@ -103,7 +118,8 @@ def test_tracetool(tracetool, backend, source_dir, build_dir):\n print(\"syntax: {argv0} TRACE-TOOL BACKEND SRC-DIR BUILD-DIR\", file=sys.stderr)\n sys.exit(1)\n \n- with tempfile.TemporaryDirectory(prefix=sys.argv[4]) as tmpdir:\n+ with tempfile.TemporaryDirectory(prefix=sys.argv[4],\n+ delete=DELETE_TEMPFILE) as tmpdir:\n fail = test_tracetool(sys.argv[1], sys.argv[2], sys.argv[3], tmpdir)\n if fail:\n sys.exit(1)\n", "prefixes": [ "PULL", "1/1" ] }