kunit: tool: drop unused KernelDirectoryPath var
authorDaniel Latypov <dlatypov@google.com>
Tue, 18 Jan 2022 19:09:20 +0000 (11:09 -0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 4 Apr 2022 20:25:47 +0000 (14:25 -0600)
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>
tools/testing/kunit/kunit.py

index bd2f7f0..4cb91d1 100755 (executable)
@@ -63,8 +63,6 @@ class KunitRequest(KunitExecRequest, KunitBuildRequest):
        pass
 
 
-KernelDirectoryPath = sys.argv[0].split('tools/testing/kunit/')[0]
-
 def get_kernel_root_path() -> str:
        path = sys.argv[0] if not __file__ else __file__
        parts = os.path.realpath(path).split('tools/testing/kunit')