Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kunit: tool: drop unused KernelDirectoryPath var

Commit be886ba90cce ("kunit: run kunit_tool from any directory")
introduced this variable, but it was unused even in that commit.

Since it's still unused now and callers can instead use
get_kernel_root_path(), delete this var.

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Daniel Latypov and committed by
Shuah Khan
89aa72cd 00f75043

-2
-2
tools/testing/kunit/kunit.py
··· 63 63 pass 64 64 65 65 66 - KernelDirectoryPath = sys.argv[0].split('tools/testing/kunit/')[0] 67 - 68 66 def get_kernel_root_path() -> str: 69 67 path = sys.argv[0] if not __file__ else __file__ 70 68 parts = os.path.realpath(path).split('tools/testing/kunit')