]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/runtime/ptest: Inject results+logs into stored json results file
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Nov 2018 13:13:43 +0000 (13:13 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Dec 2018 10:48:37 +0000 (10:48 +0000)
commit526ceab9d0e43f73635bb92e8dd7763ef75ad33b
tree96adb3b6fe2da94bef94048d067aed17316fb135
parent045511425577ccbe89d8eb91e2a87e385390cabf
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>
meta/lib/oeqa/core/runner.py
meta/lib/oeqa/runtime/cases/ptest.py