From 219c199d347a965d3abe486fc13f41d91df7c751 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Wed, 4 Sep 2019 14:23:23 +0000 Subject: 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 Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/gcc.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'meta/lib/oeqa/selftest/cases/gcc.py') diff --git a/meta/lib/oeqa/selftest/cases/gcc.py b/meta/lib/oeqa/selftest/cases/gcc.py index 0b0157e568..dba453f00a 100644 --- a/meta/lib/oeqa/selftest/cases/gcc.py +++ b/meta/lib/oeqa/selftest/cases/gcc.py @@ -71,7 +71,6 @@ class GccSelfTest(OESelftestTestCase): bb_vars = get_bb_vars(["B", "TARGET_SYS"], recipe) builddir, target_sys = bb_vars["B"], bb_vars["TARGET_SYS"] - failed = 0 for suite in suites: sumspath = os.path.join(builddir, "gcc", "testsuite", suite, "{0}.sum".format(suite)) if not os.path.exists(sumspath): # check in target dirs @@ -84,11 +83,6 @@ class GccSelfTest(OESelftestTestCase): 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) class GccSelfTestSystemEmulated(GccSelfTest): default_installed_packages = ["libgcc", "libstdc++", "libatomic", "libgomp"] -- cgit v1.2.3-54-g00ecf