]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - tools/testing/kunit/kunit_tool_test.py
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)
commite173b8b8c419897eabe0e337a0125c6d87ef1644
tree95ba78146950ab18acc6d2b59f329d0703de7b02
parent3f37d14b8a3152441f36b6bc74000996679f0998
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]