From: "'Felix Moessbauer' via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: jan.kiszka@siemens.com, stefan-koch@siemens.com,
Felix Moessbauer <felix.moessbauer@siemens.com>
Subject: [PATCH v2 3/4] testsuite: emit output filenames in generate_dependency_graph
Date: Mon, 3 Aug 2026 10:34:49 +0200 [thread overview]
Message-ID: <20260803083450.2048909-4-felix.moessbauer@siemens.com> (raw)
In-Reply-To: <20260803083450.2048909-1-felix.moessbauer@siemens.com>
Emit the filenames of the buildlist and dot output, so consumers can
directly use that for further analysis (instead of guessing the path).
For that, we also need to sanitize the filename to ensure it does not
contain a path seperator.
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
testsuite/cibase.py | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/testsuite/cibase.py b/testsuite/cibase.py
index 52748004..033b3b19 100755
--- a/testsuite/cibase.py
+++ b/testsuite/cibase.py
@@ -29,7 +29,10 @@ class CIBaseTest(CIBuilder):
should_fail=False,
reconfigure=True,
**kwargs):
- """Debug helper to better understand test task graphs."""
+ """
+ Debug helper to better understand test task graphs.
+ Returns a path pair (buildlist, task-depends.dot)
+ """
if reconfigure:
self.configure(targets=targets, **kwargs)
@@ -37,8 +40,14 @@ class CIBaseTest(CIBuilder):
self.bitbake(targets, should_fail=should_fail,
bitbake_extra_args=["-g"], **kwargs)
- self.move_in_build_dir('task-depends.dot', f"task-depends-{self.name}.dot")
- self.move_in_build_dir('pn-buildlist', f"pn-buildlist-{self.name}")
+ # self.name may contain path separators and colons
+ name = re.sub(r'[^\w.-]', '_', str(self.name))
+ self.move_in_build_dir('task-depends.dot', f"task-depends-{name}.dot")
+ self.move_in_build_dir('pn-buildlist', f"pn-buildlist-{name}")
+ return (
+ f"{self.build_dir}/pn-buildlist-{name}",
+ f"{self.build_dir}/task-depends-{name}.dot"
+ )
def perform_wic_partition_test(self, targets, wic_deploy_parts, **kwargs):
self.configure(targets=targets, wic_deploy_parts=wic_deploy_parts, **kwargs)
--
2.53.0
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260803083450.2048909-4-felix.moessbauer%40siemens.com.
next prev parent reply other threads:[~2026-08-03 8:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-03 8:34 [PATCH v2 0/4] Fix kernel build and propagation of linux-libc-dev 'Felix Moessbauer' via isar-users
2026-08-03 8:34 ` [PATCH v2 1/4] kernel: drop implicit build dependency to build-essential 'Felix Moessbauer' via isar-users
2026-08-03 8:34 ` [PATCH v2 2/4] fix(kernel): restore building of linux-libc-dev 'Felix Moessbauer' via isar-users
2026-08-03 8:34 ` 'Felix Moessbauer' via isar-users [this message]
2026-08-03 8:34 ` [PATCH v2 4/4] testsuite: add test for KERNEL_LIBC_DEV_DEPLOY 'Felix Moessbauer' via isar-users
2026-08-05 8:42 ` [PATCH v2 0/4] Fix kernel build and propagation of linux-libc-dev Zhihang Wei
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=20260803083450.2048909-4-felix.moessbauer@siemens.com \
--to=isar-users@googlegroups.com \
--cc=felix.moessbauer@siemens.com \
--cc=jan.kiszka@siemens.com \
--cc=stefan-koch@siemens.com \
/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