]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/selftest: Toolchain tests suffix "-user" for qemu usermode results
authorNathan Rossi <nathan@nathanrossi.com>
Wed, 4 Sep 2019 14:23:23 +0000 (14:23 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 7 Sep 2019 20:52:27 +0000 (21:52 +0100)
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>
meta/lib/oeqa/selftest/cases/gcc.py
meta/lib/oeqa/selftest/cases/glibc.py

index dba453f00afb00a792ae44a2508332fdc6f1a439..f4fed40ea5b3e4a185e3b5d53a2cd373ce399039 100644 (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):
index 7992ea6bf2bcf3bc46b236b950118923de7e0c03..4d0c13131b7000f316c74d42dc376f7e7ce7a92e 100644 (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 = [