mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 18:49:32 +02:00
oeqa/selftest: For toolchain tests do not fail if a test failed
Do not fail the running selftest test case if the test suite has a failed test case. Currently toolchain tests suites (binutils, gcc, glibc) fail but this does not indicate failure to execute the tests. Also remove the logging of each test that failed. (From OE-Core rev: 073575ff9c06b2791cc2bd88063d815d2220f038) 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
2b67b9dfad
commit
219c199d34
@@ -52,13 +52,7 @@ class BinutilsCrossSelfTest(OESelftestTestCase):
|
||||
if not os.path.exists(sumspath):
|
||||
sumspath = os.path.join(builddir, suite, "testsuite", "{0}.sum".format(suite))
|
||||
|
||||
failed = 0
|
||||
with open(sumspath, "r") as f:
|
||||
for test, result in parse_values(f):
|
||||
self.tc.extraresults["ptestresult.{}.{}".format(ptestsuite, test)] = {"status" : result}
|
||||
if result == "FAIL":
|
||||
self.logger.info("failed: '{}'".format(test))
|
||||
failed += 1
|
||||
|
||||
self.assertEqual(failed, 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user