summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexis Lothoré <alexis.lothore@bootlin.com>2023-02-28 19:10:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-12 23:39:13 +0000
commit1feffaf41ade3c60a186262d07682893510a42ba (patch)
tree8f851b75f8b13d5d380062cc5829796de6dc7a19 /scripts
parent754d270ab852b558ebf030453a9aa90600951121 (diff)
downloadpoky-1feffaf41ade3c60a186262d07682893510a42ba.tar.gz
scripts/resulttool: fix ptests results containing a non reproducible path
Some ptests results may be wrongly sampled, resulting in some part of the error being propagated in test name. For example: "ptestresult.binutils-ld.in testcase /home/pokybuild/yocto-worker/qemumips/build/build-st-1666126/tmp/work/mips32r2-poky-linux/binutils-cross-testsuite/2.40-r0/git/ld/testsuite/ld-ctf/ctf.exp" "ptestresult.gcc.Couldn't create remote directory /tmp/runtest.455781 on ssh" "ptestresult.gcc-libstdc++-v3.Couldn't create remote directory /tmp/runtest.3814266 on target" While the root errors must be fixed in corresponding ptests packages for those tests, the test results history must still be usable even with this issue Add new filters to detect if temporary test directories (build-st-*, /tmp/runtime.*) are present in name. If so, truncate test name. As a side effect, it will aggregate multiple failing errors into one, but the regression will still be raised (From OE-Core rev: 601eecfddd26bfe2954835a73ed1116bb520235f) Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/resulttool/regression.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/resulttool/regression.py b/scripts/lib/resulttool/regression.py
index ad377c596b..d7f0b16ca9 100644
--- a/scripts/lib/resulttool/regression.py
+++ b/scripts/lib/resulttool/regression.py
@@ -219,6 +219,12 @@ def fixup_ptest_names(results, logger):
219 new = test.split("_-_")[0] 219 new = test.split("_-_")[0]
220 elif test.startswith(("ptestresult.curl.")) and "__" in test: 220 elif test.startswith(("ptestresult.curl.")) and "__" in test:
221 new = test.split("__")[0] 221 new = test.split("__")[0]
222 elif test.startswith(("ptestresult.dbus.")) and "__" in test:
223 new = test.split("__")[0]
224 elif test.startswith("ptestresult.binutils") and "build-st-" in test:
225 new = test.split(" ")[0]
226 elif test.startswith("ptestresult.gcc") and "/tmp/runtest." in test:
227 new = ".".join(test.split(".")[:2])
222 if new: 228 if new:
223 results[r][i]['result'][new] = results[r][i]['result'][test] 229 results[r][i]['result'][new] = results[r][i]['result'][test]
224 del results[r][i]['result'][test] 230 del results[r][i]['result'][test]