poky/scripts/lib/resulttool
Richard Purdie 51e9c2fd73 resulttool/resultutils: Fix unicode error handling
This error handling didn't work as expected since upon failure it would
inject bytestreams back into the code leading to tracebacks.

Instead, ignore the decode errors. Fixes:

Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/a-full/build/scripts/resulttool", line 78, in <module>
    sys.exit(main())
  File "/home/pokybuild/yocto-worker/a-full/build/scripts/resulttool", line 72, in main
    ret = args.func(args, logger)
  File "/home/pokybuild/yocto-worker/a-full/build/scripts/lib/resulttool/store.py", line 70, in store
    resultutils.save_resultsdata(results, tempdir, ptestlogs=True)
  File "/home/pokybuild/yocto-worker/a-full/build/scripts/lib/resulttool/resultutils.py", line 178, in save_resultsdata
    f.write(sectionlog)
TypeError: write() argument must be str, not bytes

(From OE-Core rev: 3aa0d0fd0bbf8c9c13719251a2fd1e85a22c7336)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-15 17:26:01 +00:00
..
template scripts/resulttool/report: Add total statistic to test result. 2019-11-14 13:20:59 +00:00
__init__.py resulttool: enable merge, store, report and regression analysis 2019-02-21 12:34:00 +00:00
log.py oeqa/core/case.py: Add OEPTestResultTestCase for ptestresult helpers 2019-09-16 23:02:43 +01:00
manualexecution.py resulttool/manualexecution: Enable creation of test case configuration 2019-06-04 09:09:42 +01:00
merge.py resulttool/merge: Enable control TESTSERIES and extra configurations 2019-06-12 10:54:40 +01:00
regression.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
report.py scripts/lib/resulttool/report: Enable report selected test case result 2020-02-13 12:19:14 +00:00
resultutils.py resulttool/resultutils: Fix unicode error handling 2020-02-15 17:26:01 +00:00
store.py resulttool/store.py: Enable add extra test environment data 2019-11-14 13:20:59 +00:00