aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2019-09-04 14:23:23 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-07 21:52:27 +0100
commit0becf9c1fabb080a2481ebdacef6221f52301621 (patch)
treefadb86629c08a6817339e84c832638ae1a4a5ab8
parent073575ff9c06b2791cc2bd88063d815d2220f038 (diff)
downloadopenembedded-core-contrib-0becf9c1fabb080a2481ebdacef6221f52301621.tar.gz
openembedded-core-contrib-0becf9c1fabb080a2481ebdacef6221f52301621.tar.bz2
openembedded-core-contrib-0becf9c1fabb080a2481ebdacef6221f52301621.zip
oeqa/selftest: Toolchain tests suffix "-user" for qemu usermode results
Suffix the ptestresults suite with "-user" for tests that are executing against usermode qemu. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/selftest/cases/gcc.py1
-rw-r--r--meta/lib/oeqa/selftest/cases/glibc.py5
2 files changed, 4 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/gcc.py b/meta/lib/oeqa/selftest/cases/gcc.py
index dba453f00a..f4fed40ea5 100644
--- a/meta/lib/oeqa/selftest/cases/gcc.py
+++ b/meta/lib/oeqa/selftest/cases/gcc.py
@@ -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):
diff --git a/meta/lib/oeqa/selftest/cases/glibc.py b/meta/lib/oeqa/selftest/cases/glibc.py
index 7992ea6bf2..4d0c13131b 100644
--- a/meta/lib/oeqa/selftest/cases/glibc.py
+++ b/meta/lib/oeqa/selftest/cases/glibc.py
@@ -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 = [