From aee57583361557572d7949ea16e1331e9ea0584d Mon Sep 17 00:00:00 2001 From: Alexis Lothoré Date: Fri, 24 Mar 2023 14:41:09 +0100 Subject: scripts/yocto_testresults_query.py: fix regression reports for branches with slashes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (From OE-Core rev: b2fb7d7b0c05bb198a2271bbf1742645ba220ea3) Signed-off-by: Alexis Lothoré Signed-off-by: Richard Purdie --- scripts/yocto_testresults_query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/yocto_testresults_query.py') diff --git a/scripts/yocto_testresults_query.py b/scripts/yocto_testresults_query.py index 4df339c92e..a5073736aa 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//-g/ - 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}") -- cgit v1.2.3-54-g00ecf