kunit: tool: fix running kunit_tool from outside kernel tree
authorBrendan Higgins <brendanhiggins@google.com>
Tue, 11 Aug 2020 21:27:55 +0000 (14:27 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 31 Aug 2020 21:39:43 +0000 (15:39 -0600)
commit5578d008d9e06bb531fb3e62dd17096d9fd9c853
treedce5ab942820c409bbda1b30b25857d2495f7760
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
kunit: tool: fix running kunit_tool from outside kernel tree

Currently kunit_tool does not work correctly when executed from a path
outside of the kernel tree, so make sure that the current working
directory is correct and the kunit_dir is properly initialized before
running.

Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit.py