]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: show error if kunit results are not present
authorUriel Guajardo <urielguajardo@google.com>
Thu, 11 Jun 2020 21:05:45 +0000 (21:05 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 26 Jun 2020 20:29:10 +0000 (14:29 -0600)
commit111e09af20086f491051e1f1f8a5422bc7b4dd05
tree95ba78146950ab18acc6d2b59f329d0703de7b02
parent10bf66d426fda0dc89043a3e873f60c1f1931dd0
kunit: show error if kunit results are not present

Currently, if the kernel is configured incorrectly or if it crashes before any
kunit tests are run, kunit finishes without error, reporting
that 0 test cases were run.

To fix this, an error is shown when the tap header is not found, which
indicates that kunit was not able to run at all.

Signed-off-by: Uriel Guajardo <urielguajardo@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit_parser.py
tools/testing/kunit/kunit_tool_test.py
tools/testing/kunit/test_data/test_insufficient_memory.log [new file with mode: 0644]