]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: tool: handle when .kunit exists but .kunitconfig does not
authorBrendan Higgins <brendanhiggins@google.com>
Mon, 28 Sep 2020 20:02:27 +0000 (13:02 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 2 Oct 2020 16:24:19 +0000 (10:24 -0600)
commit7cd4d316cbe6fc49833f166d12ea396f6afea5a0
treee8b74980b7d38d2901a7d3ff611ba64652551d20
parent32475b40fd0a5e2a2c57863677c85a3796d33388
kunit: tool: handle when .kunit exists but .kunitconfig does not

Right now .kunitconfig and the build dir are automatically created if
the build dir does not exists; however, if the build dir is present and
.kunitconfig is not, kunit_tool will crash.

Fix this by checking for both the build dir as well as the .kunitconfig.

NOTE: This depends on commit 0dcefd75dadf ("kunit: tool: fix running
kunit_tool from outside kernel tree")

Link: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git/commit/?id=0dcefd75dadfeea68b3a62f37dade02f9863bbae
Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit.py