From: Alexis Lothoré <alexis.loth...@bootlin.com>

Regression reports are not generated on some integration branches because
yocto_testresults_query.py truncates branches names with slashes when it passes
it to resulttool. For example, "abelloni/master-next" is truncated to "abelloni"

Fix this unwanted branch truncation by fix tag parsing in yocto-testresults

Signed-off-by: Alexis Lothoré <alexis.loth...@bootlin.com>
---
 scripts/yocto_testresults_query.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/yocto_testresults_query.py 
b/scripts/yocto_testresults_query.py
index 4df339c92eb..a5073736aab 100755
--- a/scripts/yocto_testresults_query.py
+++ b/scripts/yocto_testresults_query.py
@@ -41,7 +41,7 @@ def get_sha1(pokydir, revision):
 def get_branch(tag):
     # The tags in test results repository, as returned by git rev-list, have 
the following form:
     # refs/tags/<branch>/<count>-g<sha1>/<num>
-    return tag.split("/")[2]
+    return '/'.join(tag.split("/")[2:-2])
 
 def fetch_testresults(workdir, sha1):
     logger.info(f"Fetching test results for {sha1} in {workdir}")
-- 
2.40.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#179035): 
https://lists.openembedded.org/g/openembedded-core/message/179035
Mute This Topic: https://lists.openembedded.org/mt/97823573/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to