poky/meta/lib/oeqa
Richard Purdie fcf55f58ae oeqa/runtime/ptest: Inject results+logs into stored json results file
This allows the ptest results from ptest-runner, run in an image to be
transferred over to the resulting json results output.

Each test is given a pass/skip/fail so individual results can be monitored
and the raw log output from the ptest-runner is also dumped into the
results json file as this means after the fact debugging becomes much easier.

Currently the log output is not split up per test but that would make a good
future enhancement.

I attempted to implement this as python subTests however it failed as the
output was too confusing, subTests don't support any kind of log
output handling, subTest successes aren't logged and it was making things
far more complex than they needed to be.

We mark ptest-runner as "EXPECTEDFAILURE" since its unlikely every ptest
will pass currently and we don't want that to fail the whole image test run.
Its assumed there would be later analysis of the json output to determine
regressions. We do have to change the test runner code so that
'unexpectedsuccess' is not a failure.

Also, the test names are manipuated to remove spaces and brackets with
"_" used as a replacement and any duplicate occurrences truncated.

(From OE-Core rev: a13e088942e2a3c3521e98954a394e61a15234e8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-11-07 23:08:55 +00:00
..
buildperf buildperf: measure the size of core-image-sato rootfs 2018-03-16 03:42:09 -07:00
controllers masterimage.py: rename parameter "params" in start() to "extra_bootparams" 2017-11-08 22:24:03 +00:00
core oeqa/runtime/ptest: Inject results+logs into stored json results file 2018-11-07 23:08:55 +00:00
files oeqa: rationalise Perl tests 2018-07-26 13:16:40 +01:00
manual oeqa/manual/oe-core: Drop image build during taskexp test 2018-10-11 23:06:35 +01:00
runtime oeqa/runtime/ptest: Inject results+logs into stored json results file 2018-11-07 23:08:55 +00:00
sdk oeqa/sdk: fixes related to hasPackage semantics 2018-09-04 11:03:55 +01:00
sdkext oeqa/esdk/devtool: Drop OETestDepends usage 2018-08-14 11:36:31 +01:00
selftest oeqa/selftest: Improvements to the json logging 2018-10-29 17:26:47 +00:00
utils oeqa/utils/metadata: Allow to function without the git module 2018-10-29 17:26:47 +00:00
oetest.py testimage.bbclass: fix runtime test for rpm, port smart tests to dnf 2017-03-14 14:42:17 +00:00
runexported.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
targetcontrol.py targetcontrol.py: use oe.types.boolean for QEMU_USE_KVM 2017-12-18 18:03:56 +00:00