diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2019-09-04 14:23:23 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-07 21:56:43 +0100 |
commit | 074388daf5ceb0b413caa76f348bf6f4b19fc131 (patch) | |
tree | 14dab672bd28ff530290fb477699c73beb270b32 | |
parent | 219c199d347a965d3abe486fc13f41d91df7c751 (diff) | |
download | poky-074388daf5ceb0b413caa76f348bf6f4b19fc131.tar.gz |
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>
-rw-r--r-- | meta/lib/oeqa/selftest/cases/gcc.py | 1 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/cases/glibc.py | 5 |
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): | |||
79 | sumspath = os.path.join(builddir, target_sys, suite, "testsuite", "{0}.sum".format(suite.split("-")[0])) | 79 | sumspath = os.path.join(builddir, target_sys, suite, "testsuite", "{0}.sum".format(suite.split("-")[0])) |
80 | 80 | ||
81 | ptestsuite = "gcc-{}".format(suite) if suite != "gcc" else suite | 81 | ptestsuite = "gcc-{}".format(suite) if suite != "gcc" else suite |
82 | ptestsuite = ptestsuite + "-user" if ssh is None else ptestsuite | ||
82 | self.tc.extraresults["ptestresult.sections"][ptestsuite] = {} | 83 | self.tc.extraresults["ptestresult.sections"][ptestsuite] = {} |
83 | with open(sumspath, "r") as f: | 84 | with open(sumspath, "r") as f: |
84 | for test, result in parse_values(f): | 85 | 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): | |||
43 | 43 | ||
44 | builddir = get_bb_var("B", "glibc-testsuite") | 44 | builddir = get_bb_var("B", "glibc-testsuite") |
45 | 45 | ||
46 | self.tc.extraresults["ptestresult.sections"]["glibc"] = {} | 46 | ptestsuite = "glibc-user" if ssh is None else "glibc" |
47 | self.tc.extraresults["ptestresult.sections"][ptestsuite] = {} | ||
47 | with open(os.path.join(builddir, "tests.sum"), "r") as f: | 48 | with open(os.path.join(builddir, "tests.sum"), "r") as f: |
48 | for test, result in parse_values(f): | 49 | for test, result in parse_values(f): |
49 | self.tc.extraresults["ptestresult.glibc.{}".format(test)] = {"status" : result} | 50 | self.tc.extraresults["ptestresult.{}.{}".format(ptestsuite, test)] = {"status" : result} |
50 | 51 | ||
51 | class GlibcSelfTestSystemEmulated(GlibcSelfTest): | 52 | class GlibcSelfTestSystemEmulated(GlibcSelfTest): |
52 | default_installed_packages = [ | 53 | default_installed_packages = [ |