]> 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)
commitc4cd283c4250f7419841f46af898f0fbc17e6ad9
tree95ba78146950ab18acc6d2b59f329d0703de7b02
parent34e4d887aaa81d77f37a090cdaee64a1dea50d36
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]