From: "Ross Burton" <ross@burtonini.com>
To: meta-arm@lists.yoctoproject.org
Subject: [PATCH 2/3] ci/check-machine-coverage: use listmachines.py
Date: Thu, 12 Aug 2021 10:49:51 +0100 [thread overview]
Message-ID: <20210812094952.3348524-2-ross.burton@arm.com> (raw)
In-Reply-To: <20210812094952.3348524-1-ross.burton@arm.com>
Change-Id: I5a7e706ae29b76a39aed8acfc0cd825e942b1cfe
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
ci/check-machine-coverage | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ci/check-machine-coverage b/ci/check-machine-coverage
index 035d421..f329fce 100755
--- a/ci/check-machine-coverage
+++ b/ci/check-machine-coverage
@@ -2,6 +2,7 @@
from pathlib import Path
import sys
+from listmachines import list_machines
metaarm = Path.cwd()
@@ -9,9 +10,10 @@ if metaarm.name != "meta-arm":
print("Not running inside meta-arm")
sys.exit(1)
+# Find all layers
+layers = (p.name for p in metaarm.glob("meta-*") if p.is_dir())
# All machine configurations
-machines = metaarm.glob("meta-*/conf/machine/*.conf")
-machines = set(p.stem for p in machines)
+machines = list_machines(layers)
# All kas files
kas = metaarm.glob("ci/*.yml")
--
2.25.1
next prev parent reply other threads:[~2021-08-12 9:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-12 9:49 [PATCH 1/3] ci/listmachines: add helper to list machines in a layer Ross Burton
2021-08-12 9:49 ` Ross Burton [this message]
2021-08-12 9:49 ` [PATCH 3/3] scripts: add machine summary report tool Ross Burton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210812094952.3348524-2-ross.burton@arm.com \
--to=ross@burtonini.com \
--cc=meta-arm@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).