From patchwork Thu Sep 18 21:27:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 70551 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8AE9ACAC597 for ; Thu, 18 Sep 2025 21:28:01 +0000 (UTC) Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) by mx.groups.io with SMTP id smtpd.web10.665.1758230880416517244 for ; Thu, 18 Sep 2025 14:28:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eHi9BjuM; spf=pass (domain: gmail.com, ip: 209.85.222.178, mailfrom: twoerner@gmail.com) Received: by mail-qk1-f178.google.com with SMTP id af79cd13be357-8287fedae95so193691485a.3 for ; Thu, 18 Sep 2025 14:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758230879; x=1758835679; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vcEYYYxN0trghC1lOw0StMHxbusXXBGsszO8JBo1qjk=; b=eHi9BjuM/VAJx1YRqa+6Voaj1x6bjVvrFgRZaqXLT+FYJVoW2/cijiTh8GacHRpBlR iB3XD7GdQB/fDjm+Zy+b+mihx5FCNacak28sINm1B68g9PTiaWF9f/yppZS5OpOxqNKa 7+6ZdU20DupHOgR+Y/bRRFtuOQ2ZAvs3esgXj3SteHr9S17MPIkkOE0U3/2ZioiRmiCX 9dPA97uUr8wdHK8eTu5dw6J6OE1nnR3zZU53ygQVtQK8YEHVvCuoYyJn+1D6VKKmiu2T cYNTFLKXqPfXt0WpaIY05i0NOdWJ55+wwaYI1exmzHnZx++16X6wiNjVHqXv2iZWzOe7 lkHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758230879; x=1758835679; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vcEYYYxN0trghC1lOw0StMHxbusXXBGsszO8JBo1qjk=; b=IElIQGAxRClZQTt7aztDDx3DP7wGF3JSv9vd6v/hPc163ULcREbcLiFQ35qX/sDehi i86E/mq/KcJ1FuKoWEivsAeA5LkQFMZYOiSYyhyV6C6X1DSNes/q9rRoeUPEkW5Nhw3Q xMkiTmvljItXbZ4SK6A43nxxezWs4Ie3HD1ZYYPbjkwO0/swB52EvEaPcA2Aakp2FV63 KEPA94TGISZKweIGGX6Q3R04yeGi6QFfkRDlvPEe3Sl/kZZt2nTQ2skl1cqXvBpnPiC1 h/Q3vQBr6+iIXpJFuQSR49rSucIgulNibJpghjif48YpC+EArgMhepLqki/I7xREEXS0 lP9g== X-Gm-Message-State: AOJu0YxzOB89s8qmVKUc8HgbIH0O4b+nUZxeX12myIXQEaNQ55+tKQfa F9qunXjDtmgZD7hadISux4j5S2/mlzNULf3fioKMYvLWkqD/u3CiAPMwDU8miw== X-Gm-Gg: ASbGncs4d2n+IG1i7FzaRtnKI+aS2GxT8lnoHjFhypwmk0JEWpyq3TwxU7RK1dTx49F xotDQo7sTxqE2jsCJx9p4J5OUUjkZA5uAdT6VMHoV+p4RsFTJplSJfCNT5bYBZLSuj4uEskf9wT oC93vTWYd0Ns67zG5rjqkbnV6pT3FBUaOpM0FPqEQsMfnTAv6V013ejHeyVSBIoZFN6aidTQdeF Ftl7UcJrg0q+LM4OGOorUfqwxNh6w259xkfD4U3PLiA7cOP3kV6+LSpjdg2hBGHNMNORdminebj EDoF21IhV2x5zGPnRX2Q4Kf854/d+OSQJk2B64HprttM6a95XXAwvF21ZqHmHWpRghR2RbQ0hcm TGeU12613gYmLTMjlUb5fS6tt5acyv8qmUjcMM644Ww1KLjlUekWnKPI75UolrqJOCFOIDQlLrh UnIu8= X-Google-Smtp-Source: AGHT+IHJc2nircbVZtu2qHSaEgRpQcMOA8Trp2PsBRz4tDecOY4xgxo6evQZInZkdD3kkWJuJ6bILQ== X-Received: by 2002:a05:620a:1902:b0:82a:6bde:30c7 with SMTP id af79cd13be357-83bac4aff02mr115270585a.84.1758230878657; Thu, 18 Sep 2025 14:27:58 -0700 (PDT) Received: from localhost (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id af79cd13be357-836263ab544sm235016185a.9.2025.09.18.14.27.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Sep 2025 14:27:57 -0700 (PDT) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Cc: Trevor Gamblin Subject: [PATCH 1/6] patchtest.README: trivial fixes Date: Thu, 18 Sep 2025 17:27:24 -0400 Message-ID: <20250918212743.3960-1-twoerner@gmail.com> X-Mailer: git-send-email 2.51.0.193.g4975ec3473b4 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 18 Sep 2025 21:28:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223680 Fix two small, trivial issues in the README. Signed-off-by: Trevor Woerner --- scripts/patchtest.README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/patchtest.README b/scripts/patchtest.README index 3c1ee1af1d6c..1c674e23c9ab 100644 --- a/scripts/patchtest.README +++ b/scripts/patchtest.README @@ -18,7 +18,7 @@ baseline for development of similar suites for other layers as needed. Patchtest can either run on a host or a guest machine, depending on which environment you prefer. If you plan to test your own patches (a good practice before these are sent to the mailing list), the easiest -way is to install and execute on your local host; in the other hand, if +way is to install and execute on your local host; on the other hand, if automatic testing is intended, the guest method is strongly recommended. The guest method requires the use of the patchtest layer, in addition to the tools available in oe-core: https://git.yoctoproject.org/patchtest/ @@ -33,7 +33,7 @@ by running `pip install -r meta/lib/patchtest/requirements.txt`. Note that git-pw is not automatically added to the user's PATH; by default, it is installed at ~/.local/bin/git-pw. -For git-pw (and therefore scripts such as patchtest-get--series) to work, you need +For git-pw (and therefore scripts such as patchtest-get-series) to work, you need to provide a Patchwork instance in your user's .gitconfig, like so (the project can be specified using the --project argument): From patchwork Thu Sep 18 21:27:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 70552 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75E30CAC59A for ; Thu, 18 Sep 2025 21:28:11 +0000 (UTC) Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by mx.groups.io with SMTP id smtpd.web10.669.1758230882562739346 for ; Thu, 18 Sep 2025 14:28:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ot/V4WnR; spf=pass (domain: gmail.com, ip: 209.85.160.177, mailfrom: twoerner@gmail.com) Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-4b7a8ceace8so16519031cf.3 for ; Thu, 18 Sep 2025 14:28:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758230881; x=1758835681; darn=lists.openembedded.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=w5G0izAOMBB34tEWiPkQO9hn16nlggIYvJ6JCBpvfGo=; b=Ot/V4WnRipK9a2/5PG5Y9DK3VAxmwIfmdqUp5lGLktEugm82aFrbX4JkIyLnFfGy2B b4rbbK+Y65q1asINlRa6fU279s08Uoi4NNQ0AIzzPM5OZHiLgxfmQBQJ8l0zGbW5J4BS V7ZWxMIE5wfaytyRMrejcAJAM9raSzZZN4Z0gUJnJtqket5oq2d6B/YwmRuf61i6JuF/ 6aT1WWK8Af4WU8iNaN8z44Gnn+bN9KFUvC/QDZjijCSQRaL4J6KHDryeA/26iqC555r4 WypDEvHdfpwFlTje+LM88Fm4Y/2JtaCy8Ubi+RT0EsKoOSVGdOCic00looI87kmqgl4q aiiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758230881; x=1758835681; 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=w5G0izAOMBB34tEWiPkQO9hn16nlggIYvJ6JCBpvfGo=; b=HoROeyJSeyxcPJ/APYv8jPLzBhh2A3xQBOD6S/Xju24uQLvT4hUEzV1tTVztNF0sAu 22rW/A5CSRS7C4j5/IqqIDDNJ6W5Bh2rfUVZpS+r0AizWkrDTHnokt4hGE+TxY+gQJie Rx09E0qEQwoCUi+6bumRy2oOpKMF5ZugO/5PyF9Gc9XvBsSZn5wTpoUQLZhDqf2vDsEY rKo8xhMoj/OXhOowuDx+PT0RGHdHAZ/22VPZGmk7sA/EXnsLZrSNUxxNqHTuXYulSY0A 7w1xrbNi/uDU85U6opm2caRzitnq8E4ePC+ge88Y/Pgc2GqmIShyHukv99PoSYajRqQN I1kQ== X-Gm-Message-State: AOJu0YxVZUDh2oQQl64rhlz1J2PNq+0gnaxXDkWxZ4V8JENtJJKiNVex kHMOwzrT+VSbK7OLNa77fviPDqYEq2/Dstr42qRnc5obxl+6Sbv+XGpKQeagQw== X-Gm-Gg: ASbGncu+mO/ucA7miEhmHowYfyoqF/r+4RRh5uS1d0YYSRHiPaS1uHE6fFompnV2DlF xxo4hh4SjsBbnKtZqiwizhNuKtL52V43ALCDD/ESdyKWS3nSCE0g9Sfo1duZqPym+bR76eyWaPn m91IUqPvLlkiTErwG7E1Qjz5aHMZlRzyXPUsnLH/UaPjmeh2Cd6VFy7WG7ztte17NvDzcFmGfI6 FWU12LzqvvH6dQ9mB9AVc+05e1lYW6qMPTNbvv/YzJu6rLoipExq95pDnuUDGx1JUN7NIDPLwQ6 zMzcHP9Yx+gplDWvTrvny4u2G+esYdrG3Y+ZZDg0qoN7u2CkvUc9YzHvayVx1aSw9J7tqS36YWD +rnH1348etAVuNrqpODO2G1dUSpu+Q3/cvwyFniKD7cL3rrVJRCEX3P38umQahZnzWdhMNMiMeV GRTdE= X-Google-Smtp-Source: AGHT+IGPBtfEfaazRkkoH8FiPSJmJ/MvK9d+tQjMh+lvoyrMg/tmQhXvApCTIpi+Q/Qka19qje6r/Q== X-Received: by 2002:a05:622a:a953:20b0:4c0:e6f4:d5b3 with SMTP id d75a77b69052e-4c0e6f4d751mr628011cf.58.1758230880632; Thu, 18 Sep 2025 14:28:00 -0700 (PDT) Received: from localhost (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id af79cd13be357-836263ab544sm235016185a.9.2025.09.18.14.27.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Sep 2025 14:27:59 -0700 (PDT) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Cc: Trevor Gamblin Subject: [PATCH 2/6] patchtest.README: update name and location or patchtest layer Date: Thu, 18 Sep 2025 17:27:25 -0400 Message-ID: <20250918212743.3960-2-twoerner@gmail.com> X-Mailer: git-send-email 2.51.0.193.g4975ec3473b4 In-Reply-To: <20250918212743.3960-1-twoerner@gmail.com> References: <20250918212743.3960-1-twoerner@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 18 Sep 2025 21:28:11 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223681 The patchtest layer's name and location have changed from: patchtest https://git.yoctoproject.org/patchtest to: meta-patchtest https://git.yoctoproject.org/meta-patchtest Update any references of the old name and repository to the new ones. Signed-off-by: Trevor Woerner --- scripts/patchtest.README | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/patchtest.README b/scripts/patchtest.README index 1c674e23c9ab..5a9dabc50b44 100644 --- a/scripts/patchtest.README +++ b/scripts/patchtest.README @@ -20,8 +20,9 @@ which environment you prefer. If you plan to test your own patches (a good practice before these are sent to the mailing list), the easiest way is to install and execute on your local host; on the other hand, if automatic testing is intended, the guest method is strongly recommended. -The guest method requires the use of the patchtest layer, in addition to -the tools available in oe-core: https://git.yoctoproject.org/patchtest/ +The guest method requires the use of the meta-patchtest layer, in +addition to the tools available in oe-core: +https://git.yoctoproject.org/meta-patchtest/ ## Installation @@ -43,7 +44,7 @@ To work with patchtest, you should have the following repositories cloned: 1. https://git.openembedded.org/openembedded-core/ (or https://git.yoctoproject.org/poky/) 2. https://git.openembedded.org/bitbake/ (if not using poky) -3. https://git.yoctoproject.org/patchtest (if using guest mode) +3. https://git.yoctoproject.org/meta-patchtest (if using guest mode) ## Usage @@ -98,8 +99,8 @@ from the mailing lists. When executed this way, the test process is essentially running random code from the internet and could be catastrophic if malicious bits or even poorly-handled edge cases aren't protected against. In order to use this mode, the -https://git.yoctoproject.org/patchtest/ repository must be cloned and -the meta-patchtest layer added to bblayers.conf. +https://git.yoctoproject.org/meta-patchtest/ repository must be cloned +and added to bblayers.conf. The general flow of guest mode is: From patchwork Thu Sep 18 21:27:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 70553 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D41CCAC597 for ; Thu, 18 Sep 2025 21:28:11 +0000 (UTC) Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) by mx.groups.io with SMTP id smtpd.web10.671.1758230888591917797 for ; Thu, 18 Sep 2025 14:28:08 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WMslpcyq; spf=pass (domain: gmail.com, ip: 209.85.160.173, mailfrom: twoerner@gmail.com) Received: by mail-qt1-f173.google.com with SMTP id d75a77b69052e-4b5f3e06ba9so28490071cf.1 for ; Thu, 18 Sep 2025 14:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758230883; x=1758835683; darn=lists.openembedded.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=vvEkl2qruy5im8u/625nfyQB3aGKWIzwGlHkxlgxS9g=; b=WMslpcyqN+jpI/SeC14p2hx+oPYoVpf5iumsjdNZmF6tUicmB+yLXthxjuLQoDC4zk GjruwWfN9q6fTrz7nS4cta184hDreXzYxn3o9LtydSQPZXyJzK12/BvO8gKnTl7OrdPD YFeWRSVqJXB/sHasBJCoprdlbnijX8umIDrHKGrxVj5XnanHAzZxsui7HZhZzdc7DsVV 3+fY5cYEzGbYQXw2jHdupLbLoQ0sECsdCCVHnjnC9AoDKuVkOMTgPBM8IdhV1/gNjnic g5+pB707DId2cJN6/5yFnotFpl8gHA8T4hNu5uJ+zWvtcp4VzW00AL7qyuBfgSWcIAn7 sNVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758230883; x=1758835683; 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=vvEkl2qruy5im8u/625nfyQB3aGKWIzwGlHkxlgxS9g=; b=E+8zAZFdq2k6dlmxZBKsN8naHbwZdFFk60wswIeB4hFk2pSj+dG8VpDAGkOlL71DM8 R/BfbJptAF21U5XjpZnWq5ceayF2xxO4rpxz/iwLs1c+Eegp3ktzkIG6jY68yi4EXoNp YOf8t0eUukOGSVaVKGCv7RVi6kgt9lLXbbZHGsktNSnP6HUK+q8U7KhdsDeq2cxDu64C GWR8C3+eZCGkr29qecnwNDcLEmmBHzE9cP3hF3OrydJ1gkvDYh1P+J+QQRMHLeQxhP2o Lf81ov35l7z4HnW0Ea4aNSgMTnXlzc00CUrUdU4MOIaGOvAtfsr7EjUoPQdqsA1TNvas HFCg== X-Gm-Message-State: AOJu0YzYXM0G3ugGqtBpBiAYp2rGsV0TO3ZWt6FLXs2JA/GdvR3Kn6Lh tKqb/Yw5tMJIMILJHMiBwMTjj2jnIBrTEHEzxyChtuCaJbPUCZDiUc6LBw423A== X-Gm-Gg: ASbGncvfeHiGtSkJvnXnkYxCX7WfTeuQLoI6hOD1thm0sb6l9Ibsvnnf3vbctk1fazg oD2lCxEFxwhqE+rdkF+oZc4PegYqqgvbrYx257XQBTjRE2u4UFhsGoUh9Qi/FPv5Tqf7youKMVH /UXjIsI6ThqDItOajq52FIDUKGQjDEaItiDrpSDltMl1xo6xbOEiy6zX8IRGmxISjRhf9ww6rGM vzdrjdBpq0HOmFKSDexjwS+VvhtJZSnhrB4f6knspJQVQWjgx6W05Z8/V3hPm+j9wXAi2/ET1Oo N6oIrh4OuuiNpvl4ii4fFF7o1Bd0i3m2dPe1YkUo9qnSGeu3sYahL6tBJjueWO5PJscK83h7g+7 EmJ7haNMxPNRuwdQFUaaWWq9Sh083UzovpoQ2Ua+8bFiF8yCf79L32iWsytccBobxBb2f X-Google-Smtp-Source: AGHT+IHc+RDNni17uEJnmTVNBuVIGfdA7HjfXEhV70WGIRVbJGGR7Dt0Z82uoUoo5l3hfFXd8QkHNA== X-Received: by 2002:ac8:7c50:0:b0:4b3:e964:7872 with SMTP id d75a77b69052e-4bdab340f3emr59220231cf.16.1758230882699; Thu, 18 Sep 2025 14:28:02 -0700 (PDT) Received: from localhost (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id af79cd13be357-836263ab544sm235016185a.9.2025.09.18.14.28.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Sep 2025 14:28:01 -0700 (PDT) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Cc: Trevor Gamblin Subject: [PATCH 3/6] patchtest.README: update installation instructions Date: Thu, 18 Sep 2025 17:27:26 -0400 Message-ID: <20250918212743.3960-3-twoerner@gmail.com> X-Mailer: git-send-email 2.51.0.193.g4975ec3473b4 In-Reply-To: <20250918212743.3960-1-twoerner@gmail.com> References: <20250918212743.3960-1-twoerner@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 18 Sep 2025 21:28:11 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223684 Update the installation instructions to demonstrate using a Python virtual environment to install the patchtest module dependencies. Also provide example #exactsteps. Using a virtual environment is considered a best practice for Python programs, but also makes the git-pw tool available in the user's PATH automatically. Signed-off-by: Trevor Woerner --- scripts/patchtest.README | 74 ++++++++++++++++++++++++++++++++-------- 1 file changed, 59 insertions(+), 15 deletions(-) diff --git a/scripts/patchtest.README b/scripts/patchtest.README index 5a9dabc50b44..bfbe29a37997 100644 --- a/scripts/patchtest.README +++ b/scripts/patchtest.README @@ -26,26 +26,70 @@ https://git.yoctoproject.org/meta-patchtest/ ## Installation -As a tool for use with the Yocto Project, the [quick start -guide](https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html) -contains the necessary prerequisites. In addition, patchtest relies on -several Python modules for parsing and analysis, which can be installed -by running `pip install -r meta/lib/patchtest/requirements.txt`. Note -that git-pw is not automatically added to the user's PATH; by default, -it is installed at ~/.local/bin/git-pw. +Patchtest checks patches which are expected to be applied to +Yocto layers. Therefore, familiarity with the Yocto Project, its +functionality, and image-build processes is assumed. Otherwise the +[quick start guide](https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html) +contains the necessary information. + +As a Python application, the recommended way it should be installed +(following Python best practices) is to use a virtual environment. A +Python virtual environment provides a convenient sandbox into which its +requirements can also be installed with out affecting a user's entire +system at large. Patchtest makes use of a test suite found in oe-core, +so it needs to be available as well. + +For example, to install patchtest into a Python virtual environment +called "patchtest.venv" located at some/where in your filesystem: + + $ mkdir -p some/where + $ cd some/where + $ mkdir yocto + $ pushd yocto + $ git clone https://git.openembedded.org/openembedded-core + $ git clone https://git.openembedded.org/bitbake + $ git clone https://git.yoctoproject.org/meta-patchtest + $ popd + $ . yocto/openembedded-core/oe-init-build-env build yocto/bitbake + $ cd .. + $ python3 -m venv patchtest.venv + $ . patchtest.venv/bin/activate + (patchtest.venv) $ pip install -r yocto/openembedded-core/meta/lib/patchtest/requirements.txt + +In the above list of cloned repositories, the meta-patchtest layer is +only needed if you intend to use patchtest in "guest" mode. Also the +oe-core + bitbake clones can be replaced with poky instead. + +If "guest" mode will be used, the meta-patchtest layer needs to be added +to the conf/bblayers.conf file generated above. + +If you would like to run the patchtest selftest found in oe-core, the +openembedded-core/meta-selftest (or poky/meta-selftest, if using poky) +layer also needs to be added to bblayers.conf. + +Once the installation is done, your directory layout will look like: + . + ├── build + │   └── conf + ├── yocto + │   ├── bitbake + │   ├── meta-patchtest + │   └── openembedded-core + └── patchtest.venv + ├── bin + ├── include + ├── lib + ├── lib64 -> lib + ├── pyvenv.cfg + └── share For git-pw (and therefore scripts such as patchtest-get-series) to work, you need -to provide a Patchwork instance in your user's .gitconfig, like so (the project -can be specified using the --project argument): +to provide a Patchwork instance in your user's .gitconfig, like so (alternatively +the project can be specified using the --project argument to git-pw on its +cmdline): git config --global pw.server "https://patchwork.yoctoproject.org/api/1.2/" -To work with patchtest, you should have the following repositories cloned: - -1. https://git.openembedded.org/openembedded-core/ (or https://git.yoctoproject.org/poky/) -2. https://git.openembedded.org/bitbake/ (if not using poky) -3. https://git.yoctoproject.org/meta-patchtest (if using guest mode) - ## Usage ### Obtaining Patches From patchwork Thu Sep 18 21:27:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 70556 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E4E4CAC5AB for ; Thu, 18 Sep 2025 21:28:11 +0000 (UTC) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) by mx.groups.io with SMTP id smtpd.web11.664.1758230885940185034 for ; Thu, 18 Sep 2025 14:28:06 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=D59WNoYx; spf=pass (domain: gmail.com, ip: 209.85.222.175, mailfrom: twoerner@gmail.com) Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-828690f9128so197066785a.1 for ; Thu, 18 Sep 2025 14:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758230884; x=1758835684; darn=lists.openembedded.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=YQ1+R0YDaZD3XBuAwuB2z0bH4qJHcMIvzmFQ6i7AAgY=; b=D59WNoYxdRNG+7YNAhUnhm9QaTH1KbY6Wp5gLJ2rRZtL+xRkiXFuSsYo5jm0qD0jfa mz8DihyCPZp9Uyi6axlcNSBvBuuZb/62Nxznl+Oxh7+eiJNuKBDZQ3q2WiBV1ER23VDg GcC0lyxWfANiHjfrZvuK8nQqKatOzSbGqttRwrHVHOhCIQoz7eqpri1hAzFQJkL4Kzcc RYD+yFT4/+uR7JS3uUnXU4wb+b0AqIMr/k/3bitnMWsRlGzPMwF0VRY7M5HWd/oYy6r7 ehiBhQPtK7XC2EruJKBgramouVgVAREojzImps1iCNuF838GrgTyRntWkJKyY8s3H1Tu +yVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758230884; x=1758835684; 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=YQ1+R0YDaZD3XBuAwuB2z0bH4qJHcMIvzmFQ6i7AAgY=; b=lVqxT8e5mW1kn8RPSWrZ7ymJYWs1lt+HD1WFc8tECEAGF5dftPFsJVdp3Jm1IdkNoJ 8mel+b8AXMi+aZtlf83UqPT6Jn/T8IgGI1Qd9DHF65/iykK8lOFyc6E6k+2TBMQHc+HB w2l5qf8KnnTYeJyCdNOXzVAQiEXGa6hgWN4NcpI/r5tGtn3GgRNAzaG+Y4XECGJI4s/W 0VJU83hxiwCGOrgDDx1aUQUbIUueWhisbExUqMjzc4GEe12hKQjsQl8vYL5TomRNf0Ae qA80RAM+tsVevkGE6MSwKzov181GNnF5lRhfWLdLYi0z3h11S3k/PotkGEObSZrqmACU RqAQ== X-Gm-Message-State: AOJu0YygTltmHYI1q743WIVesHm1Ln47ITNBsj3qmgMbSnEyPYzzyOml j1iRN+2u+eNoNtaLEt+3wUHtoeGO8yZCNSaziIgI2lbonqViCPFb3lJX5qoj7Q== X-Gm-Gg: ASbGncsXW72BnV3OwiKA+H36NssoaBUTkVCkXXHwgsB592WFNiEklLVe0CZS8FL4yCq 9k9bC6DHkZXwCxdDFsef/rM9o+/oKNcWw0BRJCVq3ZoA1RZSwGymGk+5LdgrFlr08oZFDrGMQ5/ cPtYLTRUnrkONHGsBEKJ/05UYRfVsuN9FBts5RSnxm0Du/m0B18blVPmy1fBn8Yfbwb8lxKuXB/ I0+U5ymuBr8NrsrIUl5PZ+XQ8WVTbtSkHoVqBUw4HMmQ+/JKA+ewq8T8EikhkChG/U+dqKlxgsX +WH/CerTx8pk7yxnfaohdu8k3ZJVHpy3S2s1iYcjcFXUiC+mqqfsiD7+Ey8206J+xiqIRRG1XiZ wdQcvf3udZwPkk1cP9ZIxSGDgg2tqiAKAceiYKbZHg3tD4BDQKJfmbDFIz0+hoj2hMrJNzF81d7 vBfQM= X-Google-Smtp-Source: AGHT+IF6XXxmdphRdWI54Teo5PvA5kEeoFtwK7cPxLSgDM6emuABafx+gSeGJluzr7zB3u5Rw3dmiw== X-Received: by 2002:ae9:e40a:0:b0:807:a4e7:d13c with SMTP id af79cd13be357-83baa7ff646mr130042085a.50.1758230884053; Thu, 18 Sep 2025 14:28:04 -0700 (PDT) Received: from localhost (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id af79cd13be357-836263ab544sm235016185a.9.2025.09.18.14.28.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Sep 2025 14:28:03 -0700 (PDT) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Cc: Trevor Gamblin Subject: [PATCH 4/6] patchtest.README: expand obtaining patches Date: Thu, 18 Sep 2025 17:27:27 -0400 Message-ID: <20250918212743.3960-4-twoerner@gmail.com> X-Mailer: git-send-email 2.51.0.193.g4975ec3473b4 In-Reply-To: <20250918212743.3960-1-twoerner@gmail.com> References: <20250918212743.3960-1-twoerner@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 18 Sep 2025 21:28:11 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223682 Expand the section on how to obtain patches with more methods, expanded explanations, and detailed steps. The suggested set of methods include: b4, git-pw, "git format-patch", and MUA programs. Signed-off-by: Trevor Woerner --- scripts/patchtest.README | 84 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 77 insertions(+), 7 deletions(-) diff --git a/scripts/patchtest.README b/scripts/patchtest.README index bfbe29a37997..b321d8e47c49 100644 --- a/scripts/patchtest.README +++ b/scripts/patchtest.README @@ -5,8 +5,7 @@ Patchtest is a test framework for community patches based on the standard unittest python module. As input, it needs three elements to work properly: -- a patch in mbox format (either created with `git format-patch` or fetched -from 'patchwork') +- one or more patches in separate, mbox-formated files - a test suite - a target repository @@ -94,11 +93,15 @@ cmdline): ### Obtaining Patches -Patch files can be obtained directly from cloned repositories using `git -format-patch -N` (where N is the number of patches starting from HEAD to -generate). git-pw can also be used with filters for users, patch/series IDs, -and timeboxes if specific patches are desired. For more information, see the -git-pw [documentation](https://patchwork.readthedocs.io/projects/git-pw/en/latest/). +Separate, mbox-formatted patch files can be obtained in a number of +ways: + + - using b4 to obtain patches from a lore server + - using git-pw to obtain patches from a patchwork server + - using "git format-patch ..." to create patches from a git + repository + - using an email program, such as mutt or thunderbird, to obtain + patches from a mailing list Alternatively, `scripts/patchtest-get-series` can be used to pull mbox files from the Patchwork instance configured previously in .gitconfig. It uses a log file @@ -109,6 +112,73 @@ the target project, but these parameters can be configured using the `--limit`, `--interval`, and `--project` arguments respectively. For more information, run `patchtest-get-series -h`. +#### git-pw + +git-pw can be used with filters for users, patch/series IDs, and +timeboxes if specific patches are desired. For more information, see the +git-pw [documentation](https://patchwork.readthedocs.io/projects/git-pw/en/latest/). + +For example, to download a single patch from the Yocto Project's +Patchwork server (and to demonstrate not having modified ~/.gitconfig): + + (patchtest.venv) $ mkdir gawk + (patchtest.venv) $ git-pw --server https://patchwork.yoctoproject.org/api/1.2/ --project oe-core patch download --mbox 70101 gawk/ + +To download a series, for example, try: + + (patchtest.venv) $ mkdir clang + (patchtest.venv) $ git-pw --server https://patchwork.yoctoproject.org/api/1.2 --project oe-core series download --separate 38107 clang/ + +#### git format-patch + +Patch files can be obtained directly from a git repository using `git +format-patch -N` (where N is the number of patches starting from HEAD to +generate) or using any other way of specifying a range of commit SHAs to +git. + +This method would be the most likely used when testing patches in local +mode before emailing them for review. + +#### b4 + +In order to use b4, it needs to be installed. Fortunately it is a Python +program that is hosted on pypi and can easily be installed into the same +Python virtual environment that was created to run patchwork: + + (patchtest.venv) $ pip install b4 + (patchtest.venv) $ b4 --version + 0.14.2 + +To fetch the same single patch using b4 that was fetched with git-pw +earlier, use: + + (patchtest.venv) $ mkdir gawk-2 + (patchtest.venv) $ b4 am -o gawk-2 https://lore.kernel.org/openembedded-core/20250912200740.2873851-1-Randy.MacLeod@windriver.com + +Fetching a patch series with b4 is a little more involved since b4 will +create one mbox file with all the patches in the series in it. Given an +mbox file with more than one patch in it, patchtest will only test the +first one. So there needs to be a separate step to break apart the +multiple patches into separate files: + + (patchtest.venv) $ mkdir clang-2 + (patchtest.venv) $ b4 am -o ross https://lore.kernel.org/openembedded-core/20250914133258.2625735-1-ross.burton@arm.com + (patchtest.venv) $ cat clang-2/v2_20250914_ross_burton_clang_improve_opt_viewer_packageconfig.mbx | formail -ds sh -c 'cat > ross/msg.$FILENO' + +NOTE: the formail utility is part of the procmail package for most Linux + distributions. + +#### mail user agents (MUA) + +Most email applications have a way of saving patch emails. Details for +each MUA is beyond the scope of this document, but it is possible in +most cases. The only catch is that each patch has to be saved in mbox +format in its own individual file. Some client applications prefer to +save emails in the Maildir format, and some programs will save a set of +patches into one mbox file. The formail program from the procmail +package is useful for manipulating and converting between formats and +storage formats. + ### Host Mode To run patchtest on the host, do the following: From patchwork Thu Sep 18 21:27:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 70555 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7283ACA1013 for ; Thu, 18 Sep 2025 21:28:11 +0000 (UTC) Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) by mx.groups.io with SMTP id smtpd.web10.670.1758230887931562550 for ; Thu, 18 Sep 2025 14:28:08 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VNRcGoTy; spf=pass (domain: gmail.com, ip: 209.85.222.182, mailfrom: twoerner@gmail.com) Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-80a6937c8c6so167243285a.2 for ; Thu, 18 Sep 2025 14:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758230886; x=1758835686; darn=lists.openembedded.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=D+aFgn/ftiilJlcGbhsA/vVx539AgsYUiKMHEqyhOWc=; b=VNRcGoTy+5JFfluxBYVLa9YaHxt4vcjBAK6AXVKy7rmfph7+mfBziHArT8hrNDOKV4 7/wmaaqgBU6AeBVPpt2nIboN1DYZdW02A57WnSTJ4+1O9B5VPmPAGQKHIlES3k+eA2GQ NkNubJ9zmQgznRRi426QdxxD1oKKo/y+MSUF5cevS8wsYaGxxW531RKWn7pDS9eJttLS iStYv/CvJVSSlwq5uFBcqxLREyul9IMhswW54rk2+nz2DbJNoHpDAachuq/X+k9l85va kevEiPxSUtkO9XqSjQOtDJFCBGg+IXKlOsMhIwvcDSlpS0bFeeQgAbA0RuXYjbIOpGkR 2+qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758230886; x=1758835686; 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=D+aFgn/ftiilJlcGbhsA/vVx539AgsYUiKMHEqyhOWc=; b=KaiiGqp+t24EYuWpuy5tWfjBFVeWKEuiPoOcBe03In8rZedjWu5cdpE6BgL/MFpoKZ kA5fOF3qcyt+7HQOwBPVC1Moiwy6PvZFMKekEYaTuXlA1eRIXUSatOFTJskwS4e2nOuC 3aRT6roGHTRwX1wMtAYX6IUAVCv3ZmLMuqyy23aqQ6EJOi18m9C0PYAKxhWYWK1/G+IK Ma1ZccbrA6fMUerEr4vPK5Y8ECj5PV+qKyWiEhN/iluPhaO0xUWd0NOGtwsKTkZl6XAy ExZsh8e9x4pMHzKQO4vemzQKVQ24IRWvDnSoUpoMBDwPl5HUUMpvrqo+39BNFI25R2Be dE6g== X-Gm-Message-State: AOJu0YxXd0Xi27yb8s189iuJMjzeTqVIqRCpQIsPQGkw/8SSkHYuXXZQ kXIbCAUki0saNWhBIYcKC7q1kBX99uQpb1bKd/gK8w3qjw4L5+9QvgA4BI4c/A== X-Gm-Gg: ASbGncuuRMMV38XSNwbRlAkWwGgxoUmR4d9863eSM5+5KD+xpiPZ9/MxkDIhoNqVbuL Hdb1acFVL51+BkBw49OkJlYfs7Yd0t4o0ROIPdZ8UDE4Ok5VZELd/3z4fVR8qlSpvuM6wNdGlC5 OwBTsGZ2+HAZRN83mFzUuG1MLNPf/5yjymXQkealFX3RV0cPllS+m53eD8/J0n4lNuzjnwHzIXF gKKn3LkcXq3T0bDPHB6RVIUEs/aAz5m1DcYA6QRRItKNFoJs6FK0W7nkCoI9i15a8mtrJw0klyK Om87WhnHVVW0fH+6tvkiOT4bwYjiwWe1yIBUzJVjQOuCAH89c1zLCrbbedjXAespv2RvYhWrJ6R Bzd4k0LQQtEa+gshNfYvfVKnulQKV9CqScLv6r3S+G6No8qHp5oYJCvuvyZJdfM0O26FDHr+BLO zWVSw= X-Google-Smtp-Source: AGHT+IHwYDdn1aTA9wyk+wImL59SW2COVIkHEh+MCfzBt4SIv8Cb0xMR7D8a9zgtaMQLsTtqQvFZCA== X-Received: by 2002:a05:620a:134c:b0:800:e534:ea6c with SMTP id af79cd13be357-83bac3bb4famr94921685a.77.1758230886082; Thu, 18 Sep 2025 14:28:06 -0700 (PDT) Received: from localhost (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id af79cd13be357-836263ab544sm235016185a.9.2025.09.18.14.28.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Sep 2025 14:28:04 -0700 (PDT) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Cc: Trevor Gamblin Subject: [PATCH 5/6] patchtest.README: update host mode section Date: Thu, 18 Sep 2025 17:27:28 -0400 Message-ID: <20250918212743.3960-5-twoerner@gmail.com> X-Mailer: git-send-email 2.51.0.193.g4975ec3473b4 In-Reply-To: <20250918212743.3960-1-twoerner@gmail.com> References: <20250918212743.3960-1-twoerner@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 18 Sep 2025 21:28:11 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223683 Update the "Host Mode" section to provide more detail and exact steps assuming the user is using a previously- or just-installed patchtest following the steps outlined in the "Installation" section above in the same document. Signed-off-by: Trevor Woerner --- scripts/patchtest.README | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/scripts/patchtest.README b/scripts/patchtest.README index b321d8e47c49..30f7538529ed 100644 --- a/scripts/patchtest.README +++ b/scripts/patchtest.README @@ -181,27 +181,42 @@ storage formats. ### Host Mode -To run patchtest on the host, do the following: +To run patchtest in "host" mode, do the following: -1. In openembedded-core/poky, do `source oe-init-build-env` -2. Generate patch files from the target repository by doing `git format-patch -N`, - where N is the number of patches starting at HEAD, or by using git-pw - or patchtest-get-series -3. Run patchtest on a patch file by doing the following: +1. Using openembedded-core or poky, do the following if re-using the + installation given in the installation procedure above: - patchtest --patch /path/to/patch/file + $ . yocto/openembedded-core/oe-init-build-env build yocto/bitbake + + or + + $ . yocto/poky/oe-init-build-env + +2. Activate the Python virtual environment that was created using the + steps from the installation procedure given above: + + $ . patchtest.venv/bin/activate + +3. Obtain one or more patches (see section above) + +4. Run patchtest on a patch file by doing the following: + + (patchtest.venv) $ patchtest --patch /path/to/patch/file or, if you have stored the patch files in a directory, do: - patchtest --directory /path/to/patch/directory + (patchtest.venv) $ patchtest --directory /path/to/patch/directory - For example, to test `master-gcc-Fix--fstack-protector-issue-on-aarch64.patch` against the oe-core test suite: + For example, to test + `master-gcc-Fix--fstack-protector-issue-on-aarch64.patch` against the + oe-core test suite: - patchtest --patch master-gcc-Fix--fstack-protector-issue-on-aarch64.patch + (patchtest.venv) $ patchtest --patch master-gcc-Fix--fstack-protector-issue-on-aarch64.patch - If you want to use a different test suite or target repository, you can use the --testdir and --repodir flags: + If you want to use a different test suite or target repository, you + can use the --testdir and --repodir flags: - patchtest --patch /path/to/patch/file --repodir /path/to/repo --testdir /path/to/test/dir + (patchtest.venv) $ patchtest --patch /path/to/patch/file --repodir /path/to/repo --testdir /path/to/test/dir ### Guest Mode From patchwork Thu Sep 18 21:27:29 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 70554 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83F91CAC5A7 for ; Thu, 18 Sep 2025 21:28:11 +0000 (UTC) Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) by mx.groups.io with SMTP id smtpd.web10.672.1758230890569268537 for ; Thu, 18 Sep 2025 14:28:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ra/fJbK7; spf=pass (domain: gmail.com, ip: 209.85.222.173, mailfrom: twoerner@gmail.com) Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-827923a97e9so148675585a.3 for ; Thu, 18 Sep 2025 14:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758230889; x=1758835689; darn=lists.openembedded.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=JW8CEvdMtSiLCrDHW3JLqTzY+IfFgQ3X7CZeMpOcd0I=; b=Ra/fJbK7hrTL6gbMCTpcL2FwG8Js+pzZxal7e1wcNUmzpOaWQnd0ZkyqBET+1I075C ClSf547AoK3IDGjSAn+IVL9shkiUgrPPu8RDF33v/4zsepWetJFuKpdez03hIWA0MJLP Cxu3Kdvgi9S7WbFQzERVPblwOJKhmo6rCe8n9dUGwtF/jF0sUQXFP+BldHNM77QwSCev Mi6XEGMFK1rmN+JYYm2L8tSdSsjU2DI1AyuLZMaVfjuhsa5V9ijPpEs1HM2Uab4m2Ies Gfl2bp8Ekd6wNYQrxOiI+dqECELdmeM1rC+ZBPWh0O3TzzOtCf0QY+6953cdmnX3bqvX bKdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758230889; x=1758835689; 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=JW8CEvdMtSiLCrDHW3JLqTzY+IfFgQ3X7CZeMpOcd0I=; b=Fy3ykBAawLj4umB3hzixxNevvgunA8EOLjwlTmbaF4PwrUfzSF6rH092u4j0Pz3jUX vpbeKTN32hGiNai9uhXjUvUWmSvI8nWHO2LY5NgxeFpxbwVBs15QIhWHY1MyT4Jq9dbT UJn0/a4J6L/wjYOUIa07LWW059uNYp4TkhEXi+nk6YYatHckgMmIY6kmOLzTnZNwjwqu V9MNdkqfitcDQvIjgFAMO2tsffs2rQo6ACD17CPUi7+abqOXoek5WyqSlDWpLAFQchLh 8M95cF9SFWrwImCiAeW7krDppvFkcvRWYEIQRyVThzKilyM6y26OJIqfrvNELsb/ph9H BNlg== X-Gm-Message-State: AOJu0Yyjuhts7iVoJ/Z5IGQjDSea+lY382rOQ0pMjLIekMKT3jkZ7JXt T7s1wcYOk/P/Qki3lHwXsvBdedEnrtDIF7tpoW7DWbUK/IFNzjaAfZWf1d6N0w== X-Gm-Gg: ASbGncvfBhDVm+7S6orr0CaHh/oCbL7bpzPCuX8pgZViX4I0ZMZ1Jb4QHHZk12Z2uJa 5NMf7N09ao+jsst834PxCjMTFJrNvXsibtK6hk8Gy3qqZYAP6FcCkgUIPfquClKq6p5GqB6VzPU oLEmwzUyy0UyrPCXwFZy8o+jNzAMxyqcfxaWOhv/1sloBPdhP5DZPgInCCp/xxjGv24/wmbVVpt BaqIKzrYHqOeGAuDfO5DZw63nhmWhWCZ/TyEZndHsgcYQdUh89qhvGrxR2ZWYsLLAgYCQgA9wa0 mltaWYmosbQZLdwXb9rAkCQUo+eRnFFiywa/3C/8Eh9uhZAVb8jk6qt1Sp9PI8/uqkTGcJ4v74P 9oREsgfCfCBGylzkScuTNZoqUWDG8J7sorNT27bM+bjXH51yKrRZTjw/77gcnpfZ1wHJ/ X-Google-Smtp-Source: AGHT+IHN033QHJLhMhKKDOZ1wHVzp5tBI5/FD8LhETbAhm1oaUXSb3fkcsN+5pD3jg7JqWn0xzRMjQ== X-Received: by 2002:a05:620a:3988:b0:813:5f77:fb85 with SMTP id af79cd13be357-83ba631db2fmr95706985a.38.1758230888745; Thu, 18 Sep 2025 14:28:08 -0700 (PDT) Received: from localhost (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id af79cd13be357-836263ab544sm235016185a.9.2025.09.18.14.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Sep 2025 14:28:06 -0700 (PDT) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Cc: Trevor Gamblin Subject: [PATCH 6/6] patchtest.README: update selftest section Date: Thu, 18 Sep 2025 17:27:29 -0400 Message-ID: <20250918212743.3960-6-twoerner@gmail.com> X-Mailer: git-send-email 2.51.0.193.g4975ec3473b4 In-Reply-To: <20250918212743.3960-1-twoerner@gmail.com> References: <20250918212743.3960-1-twoerner@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 18 Sep 2025 21:28:11 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223685 Update the "Running Patchtest Selftest to include a cmdline example of runing the selftest. Signed-off-by: Trevor Woerner --- scripts/patchtest.README | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/patchtest.README b/scripts/patchtest.README index 30f7538529ed..fc1267f05387 100644 --- a/scripts/patchtest.README +++ b/scripts/patchtest.README @@ -267,6 +267,18 @@ bitbake) in local.conf to reduce runtime, as the bitbake startup process will otherwise add to it significantly when restarted for each test patch. +If you have setup a Python virtual environment and sourced the +oe-init-build-env script to run patchtest following the directions +provided above in the "Installation" section, and you have added the +meta-selftest layer (from oe-core or poky) to your build, running the +patchtest selftest is as simple as: + + (patchtest.venv) $ yocto/openembedded-core/meta/lib/patchtest/selftest/selftest + +or: + + (patchtest.venv) $ yocto/poky/meta/lib/patchtest/selftest/selftest + ## Contributing The yocto mailing list (openembedded-core@lists.openembedded.org) is used for questions,