oeqa/selftest: Toolchain tests suffix "-user" for qemu usermode results

Suffix the ptestresults suite with "-user" for tests that are executing
against usermode qemu.

(From OE-Core rev: 0becf9c1fabb080a2481ebdacef6221f52301621)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Nathan Rossi
2019-09-04 14:23:23 +00:00
committed by Richard Purdie
parent 219c199d34
commit 074388daf5
2 changed files with 4 additions and 2 deletions

View File

@@ -79,6 +79,7 @@ class GccSelfTest(OESelftestTestCase):
sumspath = os.path.join(builddir, target_sys, suite, "testsuite", "{0}.sum".format(suite.split("-")[0]))
ptestsuite = "gcc-{}".format(suite) if suite != "gcc" else suite
ptestsuite = ptestsuite + "-user" if ssh is None else ptestsuite
self.tc.extraresults["ptestresult.sections"][ptestsuite] = {}
with open(sumspath, "r") as f:
for test, result in parse_values(f):

View File

@@ -43,10 +43,11 @@ class GlibcSelfTest(OESelftestTestCase):
builddir = get_bb_var("B", "glibc-testsuite")
self.tc.extraresults["ptestresult.sections"]["glibc"] = {}
ptestsuite = "glibc-user" if ssh is None else "glibc"
self.tc.extraresults["ptestresult.sections"][ptestsuite] = {}
with open(os.path.join(builddir, "tests.sum"), "r") as f:
for test, result in parse_values(f):
self.tc.extraresults["ptestresult.glibc.{}".format(test)] = {"status" : result}
self.tc.extraresults["ptestresult.{}.{}".format(ptestsuite, test)] = {"status" : result}
class GlibcSelfTestSystemEmulated(GlibcSelfTest):
default_installed_packages = [