From 961b83a431224f57c698b7fe505075f6492536ee Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 5 Mar 2024 07:15:30 -0500 Subject: [PATCH] twister: normalize platform name when packaging When creating a package, normalize platform names. Fixes #69793 Signed-off-by: Anas Nashif --- scripts/pylib/twister/twisterlib/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/pylib/twister/twisterlib/package.py b/scripts/pylib/twister/twisterlib/package.py index aaf065d625d..5ae17e7601c 100644 --- a/scripts/pylib/twister/twisterlib/package.py +++ b/scripts/pylib/twister/twisterlib/package.py @@ -26,7 +26,9 @@ class Artifacts: jtp = json.load(json_test_plan) for t in jtp['testsuites']: if t['status'] != "filtered": - dirs.append(os.path.join(self.options.outdir, t['platform'], t['name'])) + p = t['platform'] + normalized = p.replace("/", "_") + dirs.append(os.path.join(self.options.outdir, normalized, t['name'])) dirs.extend( [