mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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:
committed by
Richard Purdie
parent
219c199d34
commit
074388daf5
@@ -79,6 +79,7 @@ class GccSelfTest(OESelftestTestCase):
|
|||||||
sumspath = os.path.join(builddir, target_sys, suite, "testsuite", "{0}.sum".format(suite.split("-")[0]))
|
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 = "gcc-{}".format(suite) if suite != "gcc" else suite
|
||||||
|
ptestsuite = ptestsuite + "-user" if ssh is None else ptestsuite
|
||||||
self.tc.extraresults["ptestresult.sections"][ptestsuite] = {}
|
self.tc.extraresults["ptestresult.sections"][ptestsuite] = {}
|
||||||
with open(sumspath, "r") as f:
|
with open(sumspath, "r") as f:
|
||||||
for test, result in parse_values(f):
|
for test, result in parse_values(f):
|
||||||
|
|||||||
@@ -43,10 +43,11 @@ class GlibcSelfTest(OESelftestTestCase):
|
|||||||
|
|
||||||
builddir = get_bb_var("B", "glibc-testsuite")
|
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:
|
with open(os.path.join(builddir, "tests.sum"), "r") as f:
|
||||||
for test, result in parse_values(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):
|
class GlibcSelfTestSystemEmulated(GlibcSelfTest):
|
||||||
default_installed_packages = [
|
default_installed_packages = [
|
||||||
|
|||||||
Reference in New Issue
Block a user