summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/binutils.py
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:56:43 +0100
commit219c199d347a965d3abe486fc13f41d91df7c751 (patch)
tree290b54bbfbb9753ed89ddb3b4b735b3771b66f00 /meta/lib/oeqa/selftest/cases/binutils.py
parent2b67b9dfad46f39c101c28b567522ccbdbec71fd (diff)
downloadpoky-219c199d347a965d3abe486fc13f41d91df7c751.tar.gz
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>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/binutils.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/binutils.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/meta/lib/oeqa/selftest/cases/binutils.py b/meta/lib/oeqa/selftest/cases/binutils.py
index 4edee09390..7f887959e4 100644
--- a/meta/lib/oeqa/selftest/cases/binutils.py
+++ b/meta/lib/oeqa/selftest/cases/binutils.py
@@ -52,13 +52,7 @@ class BinutilsCrossSelfTest(OESelftestTestCase):
52 if not os.path.exists(sumspath): 52 if not os.path.exists(sumspath):
53 sumspath = os.path.join(builddir, suite, "testsuite", "{0}.sum".format(suite)) 53 sumspath = os.path.join(builddir, suite, "testsuite", "{0}.sum".format(suite))
54 54
55 failed = 0
56 with open(sumspath, "r") as f: 55 with open(sumspath, "r") as f:
57 for test, result in parse_values(f): 56 for test, result in parse_values(f):
58 self.tc.extraresults["ptestresult.{}.{}".format(ptestsuite, test)] = {"status" : result} 57 self.tc.extraresults["ptestresult.{}.{}".format(ptestsuite, test)] = {"status" : result}
59 if result == "FAIL":
60 self.logger.info("failed: '{}'".format(test))
61 failed += 1
62
63 self.assertEqual(failed, 0)
64 58