summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexis Lothoré <alexis.lothore@bootlin.com>2023-03-24 14:41:09 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-25 09:39:28 +0000
commitaee57583361557572d7949ea16e1331e9ea0584d (patch)
tree5f4192f08cf31732431e70a9781d3551604ebca6 /scripts
parentdd6157fc825315e325d8ebef457fb24c11e1fc16 (diff)
downloadpoky-aee57583361557572d7949ea16e1331e9ea0584d.tar.gz
scripts/yocto_testresults_query.py: fix regression reports for branches with slashes
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é <alexis.lothore@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/yocto_testresults_query.py2
1 files changed, 1 insertions, 1 deletions
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):
41def get_branch(tag): 41def get_branch(tag):
42 # The tags in test results repository, as returned by git rev-list, have the following form: 42 # The tags in test results repository, as returned by git rev-list, have the following form:
43 # refs/tags/<branch>/<count>-g<sha1>/<num> 43 # refs/tags/<branch>/<count>-g<sha1>/<num>
44 return tag.split("/")[2] 44 return '/'.join(tag.split("/")[2:-2])
45 45
46def fetch_testresults(workdir, sha1): 46def fetch_testresults(workdir, sha1):
47 logger.info(f"Fetching test results for {sha1} in {workdir}") 47 logger.info(f"Fetching test results for {sha1} in {workdir}")